Class LocalAbstractConnectionHandler

    • Field Detail

      • nonfunc

        protected java.util.Map<java.lang.String,​java.lang.Object> nonfunc
        The non-functional properties.
    • Constructor Detail

      • LocalAbstractConnectionHandler

        public LocalAbstractConnectionHandler​(java.util.Map<java.lang.String,​java.lang.Object> nonfunc)
      • LocalAbstractConnectionHandler

        public LocalAbstractConnectionHandler​(java.util.Map<java.lang.String,​java.lang.Object> nonfunc,
                                              LocalAbstractConnectionHandler conhandler)
    • Method Detail

      • doClose

        public IFuture<java.lang.Void> doClose()
        Called from connection. Initiates closing procedure (is different for initiator and participant).
        Specified by:
        doClose in interface IAbstractConnectionHandler
      • initReceived

        public void initReceived()
        Received the init message.
      • close

        public void close()
        Close the connection. Notifies the other side that the connection has been closed.
      • getConnectionId

        public int getConnectionId()
        Get the id.
        Returns:
        the id.
      • getConnection

        protected AbstractConnection getConnection()
        Get the connection.
        Returns:
        The connection.
      • setConnection

        public void setConnection​(AbstractConnection con)
        Set the connection (needed as connection and handler need each other). The connections uses this method to set itself as connection in their constructor.
        Specified by:
        setConnection in interface IAbstractConnectionHandler
      • setConnectionHandler

        public void setConnectionHandler​(LocalAbstractConnectionHandler conhandler)
        Set the connection handler of the other side.
      • getNonFunctionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getNonFunctionalProperties()
        Get the non-functional properties of the connection.
        Specified by:
        getNonFunctionalProperties in interface IAbstractConnectionHandler
        Returns:
        The non-functional properties.