public class TransportPoller extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ITERATION_THRESHOLD
Number of iterations.
|
protected static Field |
PUBLIC_SELECTED_KEYS_FIELD
Reference to the
publicSelectedKeys field in the Selector class. |
protected static Field |
SELECTED_KEYS_FIELD
Reference to the
selectedKeys field in the Selector class. |
protected NioSelectedKeySet |
selectedKeySet
KeySet used by the
Selector. |
protected Selector |
selector
Reference to the
Selector. |
| Constructor and Description |
|---|
TransportPoller()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close NioSelector down.
|
void |
selectNowWithoutProcessing()
Explicit call to
Selector.selectNow() followed by clearing out the set without processing. |
protected static final Field SELECTED_KEYS_FIELD
selectedKeys field in the Selector class.protected static final Field PUBLIC_SELECTED_KEYS_FIELD
publicSelectedKeys field in the Selector class.protected static final int ITERATION_THRESHOLD
protected final NioSelectedKeySet selectedKeySet
Selector.public void close()
close in interface AutoCloseablepublic void selectNowWithoutProcessing()
Selector.selectNow() followed by clearing out the set without processing.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.