Android
java.nio.channels.spi
public abstract class

java.nio.channels.spi.AbstractSelectionKey

java.lang.Object
java.nio.channels.SelectionKey
java.nio.channels.spi.AbstractSelectionKey

Abstract class for selection key.

The class takes charge of the validation and cancellation of key.

Summary

Constants inherited from class java.nio.channels.SelectionKey

Protected Constructors

            AbstractSelectionKey()
Constructor for this class.

Public Methods

    final      void  cancel()
Cancels this key and adds it to the cancelled key set.
    final      boolean  isValid()
Tells whether the key is valid.
Methods inherited from class java.nio.channels.SelectionKey
Methods inherited from class java.lang.Object

Details

Protected Constructors

protected AbstractSelectionKey()

Constructor for this class.

Public Methods

public final void cancel()

Cancels this key and adds it to the cancelled key set.

See Also

public final boolean isValid()

Tells whether the key is valid.

Returns

  • true if the key has not been cancelled

See Also

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48