public class TransportPoller extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static int |
ITERATION_THRESHOLD
Threshold beyond which individual channel/socket polling will swap to using a
Selector. |
static int |
ITERATION_THRESHOLD_DEFAULT
Default threshold beyond which individual channel/socket polling will swap to using a
Selector. |
static String |
ITERATION_THRESHOLD_PROP_NAME
System property name for the threshold beyond which individual channel/socket polling will swap to using
a
Selector. |
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 which will be reused to avoid allocation. |
protected Selector |
selector
Reference to the
Selector for the transport. |
| 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. |
public static final String ITERATION_THRESHOLD_PROP_NAME
Selector.public static final int ITERATION_THRESHOLD_DEFAULT
Selector.public static final int ITERATION_THRESHOLD
Selector.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 final NioSelectedKeySet selectedKeySet
Selector which will be reused to avoid allocation.public void close()
close in interface AutoCloseablepublic void selectNowWithoutProcessing()
Selector.selectNow() followed by clearing out the set without processing.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.