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
  • Method Details

    • onResponse

      void onResponse(SessionId sessionId, R response)
      Called when a response has been received.
      Parameters:
      sessionId - sessionId of the session that sent the response
      response - response object
    • onResponseError

      void onResponseError(SessionId sessionId, Throwable throwable)
      Called when a response from a session results in an error.
      Parameters:
      sessionId - sessionId of the session in error
      throwable - the throwable reason of the response error