java.lang.Object
com.marginallyclever.communications.session.SessionLayer
Direct Known Subclasses:
SerialSession, TCPSession

public abstract class SessionLayer extends Object
Created on 4/12/15.
  • Constructor Details

    • SessionLayer

      public SessionLayer()
  • Method Details

    • closeConnection

      public abstract void closeConnection()
    • openConnection

      public abstract void openConnection(String connectionName) throws Exception
      Throws:
      Exception
    • reconnect

      public abstract void reconnect() throws Exception
      Throws:
      Exception
    • isOpen

      public abstract boolean isOpen()
    • getName

      public abstract String getName()
    • sendMessage

      public abstract void sendMessage(String msg) throws Exception
      Throws:
      Exception
    • getTransportLayer

      public abstract TransportLayer getTransportLayer()
    • addListener

      public void addListener(SessionLayerListener listener)
    • removeListener

      public void removeListener(SessionLayerListener listener)