public static interface ServerSession.HeartBeatListener extends ServerSession.ServerSessionListener
Listeners objects that implement this interface will be notified when a /meta/connect
message is suspended by the server, and when it is subsequently resumed.
Modifier and Type | Method and Description |
---|---|
default void |
onResumed(ServerSession session,
ServerMessage message,
boolean timeout)
Callback invoked to notify that a
/meta/connect message has been resumed. |
default void |
onSuspended(ServerSession session,
ServerMessage message,
long timeout)
Callback invoked to notify that a
/meta/connect message has been suspended. |
default void onSuspended(ServerSession session, ServerMessage message, long timeout)
Callback invoked to notify that a /meta/connect
message has been suspended.
session
- the session that received the /meta/connect
messagemessage
- the /meta/connect
messagetimeout
- the time, in milliseconds, the server will hold the message if not otherwise resumeddefault void onResumed(ServerSession session, ServerMessage message, boolean timeout)
Callback invoked to notify that a /meta/connect
message has been resumed.
session
- the session that received the /meta/connect
messagemessage
- the /meta/connect
messagetimeout
- whether the /meta/connect
message was resumed after the whole timeoutCopyright © 2008–2024 The CometD Project. All rights reserved.