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 SelectorEventHandler
IOException
public boolean canRunAsync()
canRunAsync
in class SelectorEventHandler
public void runAsync(SelectionKey key)
runAsync
in class SelectorEventHandler
public SelectionKey initialInterestRegistration() throws ClosedChannelException
SelectorEventHandler
initialInterestRegistration
in class SelectorEventHandler
ClosedChannelException
Copyright © 2018 SPF4J. All rights reserved.