public class ClientRequestHandler extends Object implements ClientListenerRequestHandler
| Modifier and Type | Method and Description |
|---|---|
ClientListenerResponse |
handle(ClientListenerRequest req)
Handle request.
|
ClientListenerResponse |
handleException(Throwable e,
ClientListenerRequest req)
Handle exception.
|
boolean |
isCancellationCommand(int cmdId)
Detect whether given command is a cancellation command.
|
boolean |
isCancellationSupported()
Checks whether query cancellation is supported within given version of protocol.
|
ClientListenerProtocolVersion |
protocolVersion() |
void |
registerRequest(long reqId,
int cmdType)
Registers request for futher cancellation if any.
|
void |
unregisterRequest(long reqId)
Try to unregister request.
|
void |
writeHandshake(BinaryWriterExImpl writer)
Write successful handshake response.
|
public ClientListenerResponse handle(ClientListenerRequest req)
handle in interface ClientListenerRequestHandlerreq - Request.public ClientListenerResponse handleException(Throwable e, ClientListenerRequest req)
handleException in interface ClientListenerRequestHandlere - Exception.req - Request.public void writeHandshake(BinaryWriterExImpl writer)
writeHandshake in interface ClientListenerRequestHandlerwriter - Binary writer.public boolean isCancellationCommand(int cmdId)
isCancellationCommand in interface ClientListenerRequestHandlercmdId - Command Idpublic boolean isCancellationSupported()
isCancellationSupported in interface ClientListenerRequestHandlertrue if supported, false otherwise.public void registerRequest(long reqId,
int cmdType)
registerRequest in interface ClientListenerRequestHandlerreqId - Request Id.cmdType - Command Type.public void unregisterRequest(long reqId)
unregisterRequest in interface ClientListenerRequestHandlerreqId - Request Id.public ClientListenerProtocolVersion protocolVersion()
protocolVersion in interface ClientListenerRequestHandler
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021