public class AcceptingSelector extends ESSelector
NioServerSocketChannel
. It's main piece of functionality is
accepting new channels.Constructor | Description |
---|---|
AcceptingSelector(AcceptorEventHandler eventHandler) |
|
AcceptingSelector(AcceptorEventHandler eventHandler,
java.nio.channels.Selector selector) |
Modifier and Type | Method | Description |
---|---|---|
void |
scheduleForRegistration(NioServerSocketChannel serverSocketChannel) |
Schedules a NioServerSocketChannel to be registered with this selector.
|
close, isOnCurrentThread, isOpen, isRunning, isRunningFuture, queueChannelClose, rawSelector, runLoop
public AcceptingSelector(AcceptorEventHandler eventHandler) throws java.io.IOException
java.io.IOException
public AcceptingSelector(AcceptorEventHandler eventHandler, java.nio.channels.Selector selector) throws java.io.IOException
java.io.IOException
public void scheduleForRegistration(NioServerSocketChannel serverSocketChannel)
serverSocketChannel
- the channel to register