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, waitWhileFinishrequestShutdown, shouldShutdownpublic ClientHandler()
throws IOException
IOExceptionprotected void enableSelectionKeys()
enableSelectionKeys in class AbstractSelectorThreadprotected void handleConnection(SelectionKey key) throws IOException, InterruptedException
handleConnection in class AbstractSelectorThreadIOExceptionInterruptedExceptionpublic 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 AbstractSelectorThreadpublic void shutdown()
Copyright © GigaSpaces.