Interface ServerSession.HeartBeatListener

    • Method Detail

      • onSuspended

        default void onSuspended​(ServerSession session,
                                 ServerMessage message,
                                 long timeout)

        Callback invoked to notify that a /meta/connect message has been suspended.

        Parameters:
        session - the session that received the /meta/connect message
        message - the /meta/connect message
        timeout - the time, in milliseconds, the server will hold the message if not otherwise resumed
      • onResumed

        default void onResumed​(ServerSession session,
                               ServerMessage message,
                               boolean timeout)

        Callback invoked to notify that a /meta/connect message has been resumed.

        Parameters:
        session - the session that received the /meta/connect message
        message - the /meta/connect message
        timeout - whether the /meta/connect message was resumed after the whole timeout