Package org.eclipse.jetty.io
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 TypeMethodDescriptionvoid
close()
Callback method invoked when a read or write events has been detected by theManagedSelector
for this endpoint.void
replaceKey
(SelectionKey newKey) Callback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.void
void
Callback method invoked when all the keys selected by theManagedSelector
for this endpoint have been processed.
-
Field Details
-
_channel
-
_key
-
-
Constructor Details
-
Acceptor
Acceptor(SelectableChannel channel)
-
-
Method Details
-
update
- Specified by:
update
in interfaceManagedSelector.SelectorUpdate
-
onSelected
Description copied from interface:ManagedSelector.Selectable
Callback method invoked when a read or write events has been detected by theManagedSelector
for this endpoint.- Specified by:
onSelected
in interfaceManagedSelector.Selectable
- Returns:
- a job that may block or null
-
updateKey
public void updateKey()Description copied from interface:ManagedSelector.Selectable
Callback method invoked when all the keys selected by theManagedSelector
for this endpoint have been processed.- Specified by:
updateKey
in interfaceManagedSelector.Selectable
-
replaceKey
Description copied from interface:ManagedSelector.Selectable
Callback method invoked when the SelectionKey is replaced because the channel has been moved to a new selector.- Specified by:
replaceKey
in interfaceManagedSelector.Selectable
- Parameters:
newKey
- the new SelectionKey
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-