A partial EndPoint implementation based on SelectableChannel.
| Modifier and Type | Class and Description |
|---|---|
| private abstract class |
| Modifier and Type | Field and Description |
|---|---|
| private final SelectableChannel | |
| private int | |
| private int | |
| private SelectionKey | |
| private final AutoLock | |
| private final Runnable | |
| private final Runnable | |
| private final Runnable | |
| private final ManagedSelector | |
| private final ManagedSelector. | |
| private boolean | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | SelectableChannelEndPoint(Scheduler scheduler, SelectableChannel channel, ManagedSelector selector, SelectionKey selectionKey)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public SelectableChannel | |
| public SocketAddress | getLocalSocketAddress()
Overrides default org. Implements abstract org. |
| public Object | |
| public boolean | isOpen()
Overrides org. Implements org. |
| protected void | |
| public void | onClose(Throwable
The reason for the close, or null if a normal close. cause)Overrides org. Implements org. Callback method invoked when this |
| protected void | |
| public Runnable | onSelected()
Implements org. ManagedSelector for this endpoint.
|
| public void | replaceKey(SelectionKey
the new SelectionKey newKey)Implements org. |
| public String | |
| public void | updateKey()
Implements org. ManagedSelector for this endpoint have been processed.
|
| private void |
| _channel | back to summary |
|---|---|
| private final SelectableChannel _channel | |
| _currentInterestOps | back to summary |
|---|---|
| private int _currentInterestOps | |
| _desiredInterestOps | back to summary |
|---|---|
| private int _desiredInterestOps | |
| _key | back to summary |
|---|---|
| private SelectionKey _key | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _runCompleteWrite | back to summary |
|---|---|
| private final Runnable _runCompleteWrite | |
| _runCompleteWriteFillable | back to summary |
|---|---|
| private final Runnable _runCompleteWriteFillable | |
| _runFillable | back to summary |
|---|---|
| private final Runnable _runFillable | |
| _selector | back to summary |
|---|---|
| private final ManagedSelector _selector | |
| _updateKeyAction | back to summary |
|---|---|
| private final ManagedSelector. | |
| _updatePending | back to summary |
|---|---|
| private boolean _updatePending | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| SelectableChannelEndPoint | back to summary |
|---|---|
| public SelectableChannelEndPoint(Scheduler scheduler, SelectableChannel channel, ManagedSelector selector, SelectionKey selectionKey) | |
| changeInterests | back to summary |
|---|---|
| private void changeInterests(int operation) | |
| doClose | back to summary |
|---|---|
| public void doClose() Overrides org.
| |
| getChannel | back to summary |
|---|---|
| public SelectableChannel getChannel() | |
| getLocalSocketAddress | back to summary |
|---|---|
| public SocketAddress getLocalSocketAddress() Overrides default org. Implements abstract org.
| |
| getTransport | back to summary |
|---|---|
| public Object getTransport() Implements org.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Overrides org. Implements org. Doc from org. This abstract method should be called to check if idle timeouts should still be checked.
| |
| needsFillInterest | back to summary |
|---|---|
| protected void needsFillInterest() Implements abstract org.
| |
| onClose | back to summary |
|---|---|
| public void onClose(Throwable cause) Overrides org. Implements org. Doc from org. Callback method invoked when this | |
| onIncompleteFlush | back to summary |
|---|---|
| protected void onIncompleteFlush() Implements abstract org.
| |
| onSelected | back to summary |
|---|---|
| public Runnable onSelected() Implements org. Doc from org. Callback method invoked when a read or write events has been
detected by the | |
| replaceKey | back to summary |
|---|---|
| public void replaceKey(SelectionKey newKey) Implements org. Doc from org. Callback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.
| |
| toEndPointString | back to summary |
|---|---|
| public String toEndPointString() Overrides org.
| |
| updateKey | back to summary |
|---|---|
| public void updateKey() Implements org. Doc from org. Callback method invoked when all the keys selected by the
| |
| updateKeyAction | back to summary |
|---|---|
| private void updateKeyAction(Selector selector) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public String |
| _operation | back to summary |
|---|---|
| pack-priv final String _operation | |
| RunnableCloseable | back to summary |
|---|---|
| private RunnableCloseable(String operation) | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |