| java.lang.Object java.nio.channels.spi.AbstractInterruptibleChannel java.nio.channels.SelectableChannel
All known Subclasses: java.nio.channels.spi.AbstractSelectableChannel,
SelectableChannel | abstract public class SelectableChannel extends AbstractInterruptibleChannel implements Channel(Code) | | A channel that can be detected by a selector. The channel can be registered
with some selectors, and when invoke select method of the selectors, the
channel can be checked if it is readable, writable, connectable or acceptable
according to its interesting operation.
|
Constructor Summary | |
protected | SelectableChannel() Default constructor, can be overridden. |
SelectableChannel | protected SelectableChannel()(Code) | | Default constructor, can be overridden.
|
blockingLock | abstract public Object blockingLock()(Code) | | Gets the blocking lock which synchronizes the configureBlocking and
register methods.
the blocking object as lock |
isBlocking | abstract public boolean isBlocking()(Code) | | Returns if channel is in blocking mode.
true if channel is blocking |
isRegistered | abstract public boolean isRegistered()(Code) | | Returns if channel is registered.
true if channel is registered |
keyFor | abstract public SelectionKey keyFor(Selector sel)(Code) | | Gets the selection key for the channel with the given selector.
Parameters: sel - the selector with which this channel may register the selection key for the channel according to the given selector |
provider | abstract public SelectorProvider provider()(Code) | | Gets the provider of the channel.
the provider of the channel |
validOps | abstract public int validOps()(Code) | | Gets the possible interesting operation of the channel.
the possible interesting operation of the channel |
|
|