Interface Session.Listener
- All Known Implementing Classes:
Session.Listener.Default
- Enclosing interface:
- Session
public static interface Session.Listener
The optional listener interface for a session which may be used to
receive state notifications. By default a session will not have a
listener.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefaultSession.Listenerimplementation which simply logs events at debug level. -
Method Summary
Modifier and TypeMethodDescriptionvoidonSessionStateChanged(Session session, Session.State oldState, Session.State newState) Called whenever the state of a session changes.
-
Method Details
-
onSessionStateChanged
Called whenever the state of a session changes.- Parameters:
session- the sessionoldState- the old statenewState- the new state
-