public static class ClientControl.SessionDetailsListener.Default extends ServerHandler.Default implements ClientControl.SessionDetailsListener
ClientControl.SessionDetailsListener
which will simply log client session
details at debug level. This should only be used for diagnostic
purposes.ClientControl.SessionDetailsListener.Default
Constructor and Description |
---|
ClientControl.SessionDetailsListener.Default() |
Modifier and Type | Method and Description |
---|---|
void |
onSessionClose(SessionId sessionId,
SessionDetails sessionDetails,
ClientControl.CloseReason finalState)
Notification that a client session has closed.
|
void |
onSessionOpen(SessionId sessionId,
SessionDetails sessionDetails)
Notification that a new client session has been opened.
|
void |
onSessionUpdate(SessionId sessionId,
SessionDetails sessionDetails)
Notification of a change to a client session.
|
onActive, onClose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onActive, onClose
public ClientControl.SessionDetailsListener.Default()
public void onSessionOpen(SessionId sessionId, SessionDetails sessionDetails)
ClientControl.SessionDetailsListener
When the listener is registered, this will be called for all existing sessions. It will then be called for every new session that opens whilst the listener is registered.
This will be called for every client session regardless of the level of detail requested.
onSessionOpen
in interface ClientControl.SessionDetailsListener
sessionId
- the session identifiersessionDetails
- the details of the client sessionpublic void onSessionUpdate(SessionId sessionId, SessionDetails sessionDetails)
ClientControl.SessionDetailsListener
Only called if the change is of interest to the listener, i.e. if
detail covered by the requiredDetail
parameter changes.
All available details will be supplied, filtered by
requiredDetail
, not just the changed detail.
onSessionUpdate
in interface ClientControl.SessionDetailsListener
sessionId
- the client session idsessionDetails
- the current detailspublic void onSessionClose(SessionId sessionId, SessionDetails sessionDetails, ClientControl.CloseReason finalState)
ClientControl.SessionDetailsListener
This will be called for every client that closes whilst the listener is registered regardless of the level of detail requested.
onSessionClose
in interface ClientControl.SessionDetailsListener
sessionId
- the session identifier of the client that has closedsessionDetails
- the details of the client sessionfinalState
- why the session was closedCopyright © 2016 Push Technology Ltd. All Rights Reserved.