Package org.apache.drill.exec.rpc
Class FailingRequestHandler<S extends ServerConnection<S>>
java.lang.Object
org.apache.drill.exec.rpc.FailingRequestHandler<S>
- Type Parameters:
S
- server connection type
- All Implemented Interfaces:
RequestHandler<S>
public class FailingRequestHandler<S extends ServerConnection<S>>
extends Object
implements RequestHandler<S>
This handler fails any request on the connection. Example use case: the peer is making requests
before authenticating.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(S connection, int rpcType, ByteBuf pBody, ByteBuf dBody, ResponseSender sender)
-
Constructor Details
-
FailingRequestHandler
public FailingRequestHandler()
-
-
Method Details
-
handle
public void handle(S connection, int rpcType, ByteBuf pBody, ByteBuf dBody, ResponseSender sender) throws RpcException - Specified by:
handle
in interfaceRequestHandler<S extends ServerConnection<S>>
- Throws:
RpcException
-