Class ManagedSelector.Acceptor
java.lang.Object
org.eclipse.jetty.io.ManagedSelector.Acceptor
- All Implemented Interfaces:
Closeable, AutoCloseable, ManagedSelector.Selectable, ManagedSelector.SelectorUpdate
- Enclosing class:
ManagedSelector
class ManagedSelector.Acceptor
extends Object
implements ManagedSelector.SelectorUpdate, ManagedSelector.Selectable, Closeable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Callback method invoked when a read or write events has been detected by theManagedSelectorfor this endpoint.voidreplaceKey(SelectionKey newKey) Callback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.voidvoidCallback method invoked when all the keys selected by theManagedSelectorfor this endpoint have been processed.
-
Field Details
-
_channel
-
_key
-
-
Constructor Details
-
Acceptor
Acceptor(SelectableChannel channel)
-
-
Method Details
-
update
- Specified by:
updatein interfaceManagedSelector.SelectorUpdate
-
onSelected
Description copied from interface:ManagedSelector.SelectableCallback method invoked when a read or write events has been detected by theManagedSelectorfor this endpoint.- Specified by:
onSelectedin interfaceManagedSelector.Selectable- Returns:
- a job that may block or null
-
updateKey
public void updateKey()Description copied from interface:ManagedSelector.SelectableCallback method invoked when all the keys selected by theManagedSelectorfor this endpoint have been processed.- Specified by:
updateKeyin interfaceManagedSelector.Selectable
-
replaceKey
Description copied from interface:ManagedSelector.SelectableCallback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.- Specified by:
replaceKeyin interfaceManagedSelector.Selectable- Parameters:
newKey- the new SelectionKey
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-