public class ClientHandler extends AbstractSelectorThread
_logger, ownerThread
Constructor and Description |
---|
ClientHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addChannel(SocketChannel channelSocket,
Context ctx) |
protected void |
cancelKey(SelectionKey key) |
protected void |
enableSelectionKeys() |
protected void |
handleConnection(SelectionKey key) |
void |
removeChannel(SocketChannel channelSocket,
Context ctx) |
void |
setReadInterest(Context ctx) |
void |
setWriteInterest(Context ctx) |
void |
shutdown() |
closeChannel, getSelector, register, run, waitWhileFinish
requestShutdown, shouldShutdown
public ClientHandler() throws IOException
IOException
protected void enableSelectionKeys()
enableSelectionKeys
in class AbstractSelectorThread
protected void handleConnection(SelectionKey key) throws IOException, InterruptedException
handleConnection
in class AbstractSelectorThread
IOException
InterruptedException
public void addChannel(SocketChannel channelSocket, Context ctx)
public void removeChannel(SocketChannel channelSocket, Context ctx)
public void setReadInterest(Context ctx)
public void setWriteInterest(Context ctx)
protected void cancelKey(SelectionKey key)
cancelKey
in class AbstractSelectorThread
public void shutdown()
Copyright © GigaSpaces.