Package org.cometd.bayeux.server
Interface ServerSession.HeartBeatListener
-
- All Superinterfaces:
Bayeux.BayeuxListener,java.util.EventListener,ServerSession.ServerSessionListener
- Enclosing interface:
- ServerSession
public static interface ServerSession.HeartBeatListener extends ServerSession.ServerSessionListener
Listeners objects that implement this interface will be notified when a
/meta/connectmessage is suspended by the server, and when it is subsequently resumed.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonResumed(ServerSession session, ServerMessage message, boolean timeout)Callback invoked to notify that a/meta/connectmessage has been resumed.default voidonSuspended(ServerSession session, ServerMessage message, long timeout)Callback invoked to notify that a/meta/connectmessage has been suspended.
-
-
-
Method Detail
-
onSuspended
default void onSuspended(ServerSession session, ServerMessage message, long timeout)
Callback invoked to notify that a
/meta/connectmessage has been suspended.- Parameters:
session- the session that received the/meta/connectmessagemessage- the/meta/connectmessagetimeout- 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/connectmessage has been resumed.- Parameters:
session- the session that received the/meta/connectmessagemessage- the/meta/connectmessagetimeout- whether the/meta/connectmessage was resumed after the whole timeout
-
-