Added in API level 1
SelectableChannel
public
abstract
class
SelectableChannel
extends AbstractInterruptibleChannel
implements
Channel
| java.lang.Object | ||
| ↳ | java.nio.channels.spi.AbstractInterruptibleChannel | |
| ↳ | java.nio.channels.SelectableChannel | |
A channel that can be multiplexed via a Selector.
In order to be used with a selector, an instance of this class must
first be registered via the register method. This method returns a new SelectionKey object
that represents the channel's registration with the selector.
Once registered with a selector, a channel remains registered until it is deregistered. This involves deallocating whatever resources were allocated to the channel by the selector.
A channel cannot be deregistered directly; inst