public interface RequestHandler
Handle incoming requests received by the RequestServiceListener.
Modifier and Type | Method and Description |
---|---|
RequestListenerService |
getListenerService()
Return the listener service.
|
void |
handleClose(ClientHandle handle)
Called when a client close event occurs.
|
byte[] |
handleRequest(ClientHandle handle,
byte[] request)
Called when a client has sent a request.
|
void |
handleResponse(ClientHandle handle,
byte[] response)
Send a response to the supplied client (sessionId).
|
void |
handleTimeout(ClientHandle handle)
Called when a select times out waiting for client keys.
|
void handleClose(ClientHandle handle)
Called when a client close event occurs.
void handleTimeout(ClientHandle handle)
Called when a select times out waiting for client keys.
byte[] handleRequest(ClientHandle handle, byte[] request) throws RequestHandlerException
Called when a client has sent a request.
RequestHandlerException
void handleResponse(ClientHandle handle, byte[] response) throws RequestHandlerException
Send a response to the supplied client (sessionId).
RequestHandlerException
RequestListenerService getListenerService()
Return the listener service. The listener service is effectively a root context.