S - server connection typepublic interface RequestHandler<S extends ServerConnection<S>>
| Modifier and Type | Method and Description |
|---|---|
void |
handle(S connection,
int rpcType,
ByteBuf pBody,
ByteBuf dBody,
ResponseSender sender)
Handle request of given type (rpcType) with message (pBody) and optional data (dBody)
on the connection, and return the appropriate response.
|
void handle(S connection, int rpcType, ByteBuf pBody, ByteBuf dBody, ResponseSender sender) throws RpcException
send the response
+ throw UserRpcException, in which case a response will be sent using send
+ throw an Exception, in which case, the connection will be droppedconnection - remote connectionrpcType - rpc typepBody - messagedBody - data, maybe nullsender - used to send the responseRpcExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.