Module org.cometd.api.server
Package org.cometd.bayeux.server
Interface ServerSession.HeartBeatListener
- All Superinterfaces:
Bayeux.BayeuxListener
,EventListener
,ServerSession.ServerSessionListener
- Enclosing interface:
ServerSession
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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
Method Details
-
onSuspended
Callback invoked to notify that a
/meta/connect
message has been suspended.- Parameters:
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 resumed
-
onResumed
Callback invoked to notify that a
/meta/connect
message has been resumed.- Parameters:
session
- the session that received the/meta/connect
messagemessage
- the/meta/connect
messagetimeout
- whether the/meta/connect
message was resumed after the whole timeout
-