public class SelectorManager extends ManagedRunnable
Constructor and Description |
---|
SelectorManager(Pivot pivot,
String hostName,
String port,
int readSelectorThreads) |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getBindInetSocketAddress() |
String |
getHostName() |
int |
getPort() |
ReadSelectorThread |
getReadHandler(SelectableChannel channel) |
WriteSelectorThread |
getWriteHandler(SelectableChannel channel) |
protected void |
waitWhileFinish()
This method will be invoked by requestShutdown().
|
requestShutdown, shouldShutdown
public SelectorManager(Pivot pivot, String hostName, String port, int readSelectorThreads) throws IOException
IOException
protected void waitWhileFinish()
ManagedRunnable
waitWhileFinish
in class ManagedRunnable
public int getPort()
public String getHostName()
public InetSocketAddress getBindInetSocketAddress()
public ReadSelectorThread getReadHandler(SelectableChannel channel)
public WriteSelectorThread getWriteHandler(SelectableChannel channel)
Copyright © GigaSpaces.