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, runrequestShutdown, shouldShutdownpublic AcceptSelectorThread(Pivot pivot, ReadSelectorThread[] readHandlers, String hostName, String port) throws IOException
IOExceptionpublic int getPort()
public String getHostName()
protected void handleConnection(SelectionKey key) throws IOException, InterruptedException
handleConnection in class AbstractSelectorThreadIOExceptionInterruptedExceptionprotected void enableSelectionKeys()
enableSelectionKeys in class AbstractSelectorThreadprotected void waitWhileFinish()
ManagedRunnablewaitWhileFinish in class AbstractSelectorThreadpublic InetSocketAddress getBindInetSocketAddress()
Copyright © GigaSpaces.