Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.nio.channels.spi

Class AbstractSelectionKey

java.lang.Object
|
+--java.nio.channels.SelectionKey
   |
   +--java.nio.channels.spi.AbstractSelectionKey


public abstract class AbstractSelectionKey

extends SelectionKey

Since:

Constructor Summary

AbstractSelectionKey()

Initializes the key.

Method Summary

voidcancel()

Cancels this key.
booleanisValid()

Tells whether this key is valid or not.

Constructor Details

AbstractSelectionKey

protected AbstractSelectionKey()

Initializes the key.


Method Details

cancel

public final void cancel()

Cancels this key.


isValid

public final boolean isValid()

Tells whether this key is valid or not.