public class RequestProxy extends Object implements Runnable
The service thread side will process the request and wait for notification if more I/O is needed and the channel is not ready.
Constructor and Description |
---|
RequestProxy(LogConfig config,
SelectionKey key)
Constructs a request proxy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
channelReady()
Tells the proxy that the channel is ready for IO.
|
void |
run()
Run is called from the thread pool to process the request.
|
public RequestProxy(LogConfig config, SelectionKey key)
config
- The log configurationkey
- The nio selection key identifying the socket channelpublic boolean channelReady()
public void run()