@ParametersAreNonnullByDefault public final class ProxyBufferTransferHandler extends SelectorEventHandler
Constructor and Description |
---|
ProxyBufferTransferHandler(TransferBuffer in,
TransferBuffer out,
SnifferFactory snifferFactory,
SocketChannel channel,
Selector selector,
ExecutorService exec,
BlockingQueue<Runnable> tasksToRunBySelector,
UpdateablePriorityQueue.ElementRef deadlineActionRef) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRunAsync() |
SelectionKey |
initialInterestRegistration()
Method must be invoked in selector thread.
|
void |
run(SelectionKey skey) |
void |
runAsync(SelectionKey sKey) |
String |
toString() |
public ProxyBufferTransferHandler(TransferBuffer in, TransferBuffer out, @Nullable SnifferFactory snifferFactory, SocketChannel channel, Selector selector, ExecutorService exec, BlockingQueue<Runnable> tasksToRunBySelector, UpdateablePriorityQueue.ElementRef deadlineActionRef)
public SelectionKey initialInterestRegistration() throws ClosedChannelException
SelectorEventHandler
initialInterestRegistration
in class SelectorEventHandler
ClosedChannelException
public boolean canRunAsync()
canRunAsync
in class SelectorEventHandler
public void runAsync(SelectionKey sKey) throws IOException
runAsync
in class SelectorEventHandler
IOException
public void run(SelectionKey skey)
run
in class SelectorEventHandler
Copyright © 2018 SPF4J. All rights reserved.