java.nio.channels.spi

Class AbstractSelectionKey

public abstract class AbstractSelectionKey extends SelectionKey

Since: 1.4

Constructor Summary
protected AbstractSelectionKey()
Initializes the key.
Method Summary
voidcancel()
Cancels this key.
booleanisValid()
Tells whether this key is valid or not.

Constructor Detail

AbstractSelectionKey

protected AbstractSelectionKey()
Initializes the key.

Method Detail

cancel

public final void cancel()
Cancels this key.

isValid

public final boolean isValid()
Tells whether this key is valid or not.

Returns: true if this key is valid, false otherwise