R - response typepublic static interface Messaging.FilteredRequestCallback<R> extends Stream
| Modifier and Type | Interface and Description |
|---|---|
static class |
Messaging.FilteredRequestCallback.Default<R>
Default implementation of
Messaging.FilteredRequestCallback. |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose()
Deprecated.
since 6.5 this method is not called; in a future release,
FilteredRequestCallback will no longer extend Stream.
|
void |
onError(ErrorReason errorReason)
Deprecated.
since 6.5 this method is no longer called; in a future
release, FilteredRequestCallback will no longer extend
Stream.
|
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.
|
void onResponse(SessionId sessionId, R response)
sessionId - sessionId of the session that sent the responseresponse - response objectvoid onResponseError(SessionId sessionId, Throwable throwable)
sessionId - sessionId of the session in errorthrowable - the throwable reason of the response error@Deprecated void onClose()
StreamNo further calls will be made for the stream context.
@Deprecated void onError(ErrorReason errorReason)
CallbackonError is called include the session being closed, a
communication timeout, or a problem with the provided parameters. No
further calls will be made to this callback for the call context.onError in interface CallbackerrorReason - a value representing the error; this can be one of
constants defined in ErrorReason, or a feature-specific
reasonCopyright © 2023 DiffusionData Limited. All rights reserved.