Interface Messaging.RequestStream.Responder<R>

Type Parameters:
R - response class type
Enclosing interface:
Messaging.RequestStream<T,R>

public static interface Messaging.RequestStream.Responder<R>
Responder interface to dispatch responses to requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reject(String message)
    Reject a request.
    void
    respond(R response)
    Dispatch a response to a request.
  • Method Details

    • respond

      void respond(R response)
      Dispatch a response to a request.
      Parameters:
      response - the response
    • reject

      void reject(String message)
      Reject a request.
      Parameters:
      message - context message to be contained in the rejection.
      See Also: