private class ManagedSelector.SelectorProducer extends java.lang.Object implements ExecutionStrategy.Producer
| Modifier and Type | Field and Description |
|---|---|
private java.util.Iterator<java.nio.channels.SelectionKey> |
_cursor |
private java.util.Set<java.nio.channels.SelectionKey> |
_keys |
| Modifier | Constructor and Description |
|---|---|
private |
SelectorProducer() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Runnable |
processSelected() |
private void |
processUpdates() |
java.lang.Runnable |
produce()
Produces a task to be executed.
|
private boolean |
select() |
java.lang.String |
toString() |
private void |
updateKeys() |
private java.util.Set<java.nio.channels.SelectionKey> _keys
private java.util.Iterator<java.nio.channels.SelectionKey> _cursor
public java.lang.Runnable produce()
ExecutionStrategy.ProducerProduces a task to be executed.
produce in interface ExecutionStrategy.Producerprivate void processUpdates()
private boolean select()
private java.lang.Runnable processSelected()
private void updateKeys()
public java.lang.String toString()
toString in class java.lang.Object