S- server connection type
public interface RequestHandler<S extends ServerConnection<S>>
|Modifier and Type||Method and Description|
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
sendthe response + throw UserRpcException, in which case a response will be sent using
send+ throw an Exception, in which case, the connection will be dropped
Copyright © 1970 The Apache Software Foundation. All rights reserved.