Interface Messaging.FilteredRequestCallback<R>
- Type Parameters:
R- response type
- All Known Implementing Classes:
Messaging.FilteredRequestCallback.Default
- Enclosing interface:
- Messaging
public static interface Messaging.FilteredRequestCallback<R>
Callback interface for requests dispatched through a filter.
- Since:
- 6.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault implementation ofMessaging.FilteredRequestCallback. -
Method Summary
Modifier and TypeMethodDescriptionvoidonResponse(SessionId sessionId, R response) Called when a response has been received.voidonResponseError(SessionId sessionId, Throwable throwable) Called when a response from a session results in an error.
-
Method Details
-
onResponse
Called when a response has been received.- Parameters:
sessionId- sessionId of the session that sent the responseresponse- response object
-
onResponseError
Called when a response from a session results in an error.- Parameters:
sessionId- sessionId of the session in errorthrowable- the throwable reason of the response error
-