R
- response class typepublic static class MessagingControl.FilteredRequestCallback.Default<R> extends Stream.Default implements MessagingControl.FilteredRequestCallback<R>
MessagingControl.FilteredRequestCallback
.
This simply logs the calls to each callback at either WARN or DEBUG.MessagingControl.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
public void onResponse(SessionId sessionId, R response)
MessagingControl.FilteredRequestCallback
onResponse
in interface MessagingControl.FilteredRequestCallback<R>
sessionId
- sessionId of the session that sent the responseresponse
- response objectpublic void onResponseError(SessionId sessionId, Throwable throwable)
MessagingControl.FilteredRequestCallback
onResponseError
in interface MessagingControl.FilteredRequestCallback<R>
sessionId
- sessionId of the session in errorthrowable
- the throwable reason of the response errorCopyright © 2020 Push Technology Ltd. All Rights Reserved.