C
- context object typepublic static class ClientControl.SessionDetailsContextCallback.Default<C> extends ContextCallback.Default<C> implements ClientControl.SessionDetailsContextCallback<C>
ClientControl.SessionDetailsContextCallback
.
This simply logs onReply calls at 'info' level and onUnknownSession calls at 'warn' level. These methods may be overridden as required to perform more specific processing.
ClientControl.SessionDetailsContextCallback.Default<C>
Constructor and Description |
---|
ClientControl.SessionDetailsContextCallback.Default() |
Modifier and Type | Method and Description |
---|---|
void |
onReply(C context,
SessionId sessionId,
SessionDetails sessionDetails)
Called to return requested session details.
|
void |
onUnknownSession(C context,
SessionId sessionId)
Called to indicate that the session indicated in a request is not
known by the server.
|
onDiscard
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onDiscard
public ClientControl.SessionDetailsContextCallback.Default()
public void onReply(C context, SessionId sessionId, SessionDetails sessionDetails)
ClientControl.SessionDetailsContextCallback
onReply
in interface ClientControl.SessionDetailsContextCallback<C>
context
- the context object supplied when making the call. May
be null
sessionId
- the session identifiersessionDetails
- the requested session detailspublic void onUnknownSession(C context, SessionId sessionId)
ClientControl.SessionDetailsContextCallback
onUnknownSession
in interface ClientControl.SessionDetailsContextCallback<C>
context
- the context object supplied when making the call. May
be null
sessionId
- the requested session identifierCopyright © 2016 Push Technology Ltd. All Rights Reserved.