@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
SelectorEventHandlerinitialInterestRegistration in class SelectorEventHandlerClosedChannelExceptionpublic boolean canRunAsync()
canRunAsync in class SelectorEventHandlerpublic void runAsync(SelectionKey sKey) throws IOException
runAsync in class SelectorEventHandlerIOExceptionpublic void run(SelectionKey skey)
run in class SelectorEventHandlerCopyright © 2018 SPF4J. All rights reserved.