R
- response class typepublic static class Messaging.FilteredRequestCallback.Default<R> extends Stream.Default implements Messaging.FilteredRequestCallback<R>
Messaging.FilteredRequestCallback
.
This simply logs the calls to each callback at either WARN or DEBUG.Messaging.FilteredRequestCallback.Default<R>
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
void |
onResponse(SessionId sessionId,
R response)
Called when a response has been received.
|
void |
onResponseError(SessionId sessionId,
Throwable throwable)
Called when a response from a session results in an error.
|
onClose
onError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onClose, onError
public void onResponse(SessionId sessionId, R response)
Messaging.FilteredRequestCallback
onResponse
in interface Messaging.FilteredRequestCallback<R>
sessionId
- sessionId of the session that sent the responseresponse
- response objectpublic void onResponseError(SessionId sessionId, Throwable throwable)
Messaging.FilteredRequestCallback
onResponseError
in interface Messaging.FilteredRequestCallback<R>
sessionId
- sessionId of the session in errorthrowable
- the throwable reason of the response errorCopyright © 2022 Push Technology Ltd. All Rights Reserved.