java.nio.channels.spi
Class AbstractSelector
java.lang.Object
|
+--java.nio.channels.Selector
|
+--java.nio.channels.spi.AbstractSelector
public abstract class
AbstractSelectorextends
SelectorAbstractSelector
protected AbstractSelector(java.nio.channels.spi.SelectorProvider provider)
Initializes the slector.
Parameters:
begin
protected final void begin()
Marks the beginning of an I/O operation that might block indefinitely.
cancelledKeys
protected final Set cancelledKeys()
close
public final void close()
Closes the channel.
Throws:
deregister
protected final void deregister(java.nio.channels.spi.AbstractSelectionKey key)
Parameters:
end
protected final void end()
implCloseSelector
protected void implCloseSelector()
Closes the channel.
isOpen
public final boolean isOpen()
Tells whether this channel is open or not.
provider
public final SelectorProvider provider()
register
protected SelectionKey register(java.nio.channels.spi.AbstractSelectableChannel ch, int ops, java.lang.Object att)
Parameters: