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.
A |
| private class | |
| public static interface | ManagedSelector.
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. Starts the managed lifecycle beans in the order they were added. |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Overrides org. Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| 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. Returns a string representation of the object. |
| private void |