public interface 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.
|
ClientListenerResponse handle(ClientListenerRequest req)
req - Request.ClientListenerResponse handleException(Throwable e, ClientListenerRequest req)
e - Exception.req - Request.void writeHandshake(BinaryWriterExImpl writer)
writer - Binary writer.boolean isCancellationSupported()
true if supported, false otherwise.boolean isCancellationCommand(int cmdId)
cmdId - Command Idvoid registerRequest(long reqId,
int cmdType)
reqId - Request Id.cmdType - Command Type.void unregisterRequest(long reqId)
reqId - Request Id.ClientListenerProtocolVersion protocolVersion()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021