DiffusionTM Java API 6.5.2
T- request class type
R- response class type
public static interface Messaging.RequestHandler<T,R> extends Stream
Messaging.RequestHandler.Responder.respond(R)must be called to dispatch a response to the request.
|Modifier and Type||Interface and Description|
Context of the request received.
Responder interface to dispatch responses to requests.
|Modifier and Type||Method and Description|
Called to indicate a request has been received.
void onRequest(T request, Messaging.RequestHandler.RequestContext context, Messaging.RequestHandler.Responder<R> responder)
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
Copyright © 2020 Push Technology Ltd. All Rights Reserved.