Interface Messaging.RequestHandler<T,R>

Type Parameters:
T - request class type
R - response class type
All Superinterfaces:
Callback, Stream
Enclosing interface:
Messaging

public static interface Messaging.RequestHandler<T,R> extends Stream
Interface which specifies a request handler to receive request notifications.

respond must be called to dispatch a response to the request.

Since:
6.0
  • Method Details

    • onRequest

      void onRequest(T request, Messaging.RequestHandler.RequestContext context, Messaging.RequestHandler.Responder<R> responder)
      Called to indicate a request has been received.
      Parameters:
      request - request that was received
      context - context object that provides the session id (session that sent the request), path and session properties.
      responder - responder to dispatch a response back to the requester