ManagedSelector wraps a Selector simplifying non-blocking operations on channels.
ManagedSelector runs the select loop, which waits on Selector#select() until events
happen for registered channels. When events happen, it notifies the EndPoint associated
with the channel.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class | |
| private class | |
| pack-priv class | |
| private class | |
| private class | |
| private static class | |
| public static interface | ManagedSelector.Selectable
A |
| private class | |
| public static interface | ManagedSelector.SelectorUpdate
A selector update to be done when the selector has been woken. |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final SampleStatistic | |
| private final AutoLock | |
| private boolean | |
| private Selector | |
| private final SelectorManager | |
| private final AtomicBoolean | |
| private final ExecutionStrategy | |
| private Deque | |
| private Deque | |
| private static final boolean | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| protected void | doStart()
Overrides org. |
| protected void | doStop()
Overrides org. |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Overrides org. Implements org. |
| protected void | |
| protected void | |
| private void | |
| private int | |
| public double | |
| public long | |
| public long | |
| public Selector | |
| public int | |
| protected void | |
| protected int | |
| protected void | |
| private void | |
| public void | |
| pack-priv static int | |
| pack-priv static int | |
| protected int | |
| public int | |
| public void | submit(ManagedSelector.
The selector update to apply at next wakeup updateSubmit an |
| private void | |
| public String | toString()
Overrides org. |
| private void |