public class AcceptSelectorThread extends AbstractSelectorThread
_logger, _pivot, ownerThread
Constructor and Description |
---|
AcceptSelectorThread(Pivot pivot,
ReadSelectorThread[] readHandlers,
String hostName,
String port) |
Modifier and Type | Method and Description |
---|---|
protected void |
enableSelectionKeys() |
InetSocketAddress |
getBindInetSocketAddress() |
String |
getHostName() |
int |
getPort() |
protected void |
handleConnection(SelectionKey key) |
protected void |
waitWhileFinish()
This method will be invoked by requestShutdown().
|
cancelKey, closeChannel, getSelector, register, run
requestShutdown, shouldShutdown
public AcceptSelectorThread(Pivot pivot, ReadSelectorThread[] readHandlers, String hostName, String port) throws IOException
IOException
public int getPort()
public String getHostName()
protected void handleConnection(SelectionKey key) throws IOException, InterruptedException
handleConnection
in class AbstractSelectorThread
IOException
InterruptedException
protected void enableSelectionKeys()
enableSelectionKeys
in class AbstractSelectorThread
protected void waitWhileFinish()
ManagedRunnable
waitWhileFinish
in class AbstractSelectorThread
public InetSocketAddress getBindInetSocketAddress()
Copyright © GigaSpaces.