Class ActivityExtension.SessionExtension

    • Method Detail

      • getMaxInactivityPeriod

        public long getMaxInactivityPeriod()
        Returns:
        the max inactivity period, in milliseconds
      • getLastActivity

        protected long getLastActivity()
        Returns:
        the last activity timestamp, in nanoseconds
      • rcv

        public boolean rcv​(ServerSession session,
                           ServerMessage.Mutable message)
        Description copied from interface: ServerSession.Extension

        Callback method invoked every time a normal message is incoming.

        Specified by:
        rcv in interface ServerSession.Extension
        Parameters:
        session - the session that sent the message
        message - the incoming message
        Returns:
        true if message processing should continue, false if it should stop
      • rcvMeta

        public boolean rcvMeta​(ServerSession session,
                               ServerMessage.Mutable message)
        Description copied from interface: ServerSession.Extension

        Callback method invoked every time a meta message is incoming.

        Specified by:
        rcvMeta in interface ServerSession.Extension
        Parameters:
        session - the session that is sent the message
        message - the incoming meta message
        Returns:
        true if message processing should continue, false if it should stop
      • sendMeta

        public boolean sendMeta​(ServerSession session,
                                ServerMessage.Mutable message)
        Description copied from interface: ServerSession.Extension

        Callback method invoked every time a meta message is outgoing.

        Specified by:
        sendMeta in interface ServerSession.Extension
        Parameters:
        session - the session receiving the message
        message - the outgoing meta message
        Returns:
        true if message processing should continue, false if it should stop
      • markActive

        protected void markActive()
      • isInactive

        public boolean isInactive()
      • disconnect

        protected void disconnect​(ServerSession session)