S - server connection typepublic interface RequestHandler<S extends ServerConnection<S>>
| Modifier and Type | Method and Description |
|---|---|
void |
handle(S connection,
int rpcType,
io.netty.buffer.ByteBuf pBody,
io.netty.buffer.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, io.netty.buffer.ByteBuf pBody, io.netty.buffer.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 © 2021 The Apache Software Foundation. All rights reserved.