public class ReadSelectorThread extends AbstractSelectorThread
_logger, ownerThread
Constructor and Description |
---|
ReadSelectorThread(Pivot pivot,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
createKey(SocketChannel channel)
called after the reading has finished
|
protected void |
enableSelectionKeys() |
protected void |
handleConnection(SelectionKey key) |
void |
registerKey(SelectionKey key)
called after the reading has finished
|
cancelKey, closeChannel, getSelector, register, run, waitWhileFinish
requestShutdown, shouldShutdown
public ReadSelectorThread(Pivot pivot, String name) throws IOException
IOException
protected void handleConnection(SelectionKey key) throws IOException, InterruptedException
handleConnection
in class AbstractSelectorThread
IOException
InterruptedException
protected void enableSelectionKeys()
enableSelectionKeys
in class AbstractSelectorThread
public void registerKey(SelectionKey key)
public void createKey(SocketChannel channel)
Copyright © GigaSpaces.