public final class AcceptorSelectorEventHandler extends SelectorEventHandler
| Constructor and Description |
|---|
AcceptorSelectorEventHandler(ServerSocketChannel channel,
ClientHandler clientHandler,
Selector selector,
ExecutorService exec,
BlockingQueue<Runnable> tasksToRunBySelector,
UpdateablePriorityQueue<DeadlineAction> deadlineActions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRunAsync() |
SelectionKey |
initialInterestRegistration()
Method must be invoked in selector thread.
|
void |
run(SelectionKey key) |
void |
runAsync(SelectionKey key) |
String |
toString() |
public AcceptorSelectorEventHandler(ServerSocketChannel channel, ClientHandler clientHandler, Selector selector, ExecutorService exec, BlockingQueue<Runnable> tasksToRunBySelector, UpdateablePriorityQueue<DeadlineAction> deadlineActions)
public void run(SelectionKey key) throws IOException
run in class SelectorEventHandlerIOExceptionpublic boolean canRunAsync()
canRunAsync in class SelectorEventHandlerpublic void runAsync(SelectionKey key)
runAsync in class SelectorEventHandlerpublic SelectionKey initialInterestRegistration() throws ClosedChannelException
SelectorEventHandlerinitialInterestRegistration in class SelectorEventHandlerClosedChannelExceptionCopyright © 2018 SPF4J. All rights reserved.