Interface Messaging.RequestHandler<T,R>
- Type Parameters:
T- request class typeR- response class type
- Enclosing interface:
- Messaging
Interface which specifies a request handler to receive request
notifications.
respond must be called
to dispatch a response to the request.
- Since:
- 6.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext of the request received.static interfaceResponder interface to dispatch responses to requests.Nested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.callbacks.Stream
Stream.Default -
Method Summary
Modifier and TypeMethodDescriptionvoidonRequest(T request, Messaging.RequestHandler.RequestContext context, Messaging.RequestHandler.Responder<R> responder) Called to indicate a request has been received.
-
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 receivedcontext- 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
-