java.nio.channels.spi
Class AbstractSelectableChannel
java.lang.Object
|
+--java.nio.channels.spi.AbstractInterruptibleChannel
|
+--java.nio.channels.SelectableChannel
|
+--java.nio.channels.spi.AbstractSelectableChannel
AbstractSelectableChannel
protected AbstractSelectableChannel(java.nio.channels.spi.SelectorProvider provider)
Initializes the channel
Parameters:
blockingLock
public final Object blockingLock()
Retrieves the object upon which the configureBlocking and register
methods synchronize.
configureBlocking
public final SelectableChannel configureBlocking(boolean block)
Adjusts this channel's blocking mode.
Parameters:
implCloseChannel
protected final void implCloseChannel()
Closes this channel.
Throws:
implCloseSelectableChannel
protected void implCloseSelectableChannel()
Closes this selectable channel.
implConfigureBlocking
protected void implConfigureBlocking(boolean block)
Adjusts this channel's blocking mode.
Parameters:
isBlocking
public final boolean isBlocking()
Tells whether or not every I/O operation on this channel will block
until it completes.
isRegistered
public final boolean isRegistered()
Tells whether or not this channel is currently registered with
any selectors.
keyFor
public final SelectionKey keyFor(java.nio.channels.Selector selector)
Retrieves the key representing the channel's registration with the
given selector.
Parameters:
provider
public final SelectorProvider provider()
Returns the provider that created this channel.
register
public final SelectionKey register(java.nio.channels.Selector selin, int ops, java.lang.Object att)
Registers this channel with the given selector, returning a selection key.
Parameters:
Throws: