Module java.base
Package java.nio.channels

# Class SelectionKey

=
public abstract class SelectionKey
extends java.lang.Object

## Fields

- =
  public static final int OP_ACCEPT = 16
- =
  public static final int OP_CONNECT = 8
- =
  public static final int OP_READ = 1
- =
  public static final int OP_WRITE = 4

## Constructors

- =
  protected SelectionKey()

## Methods

- =
  public final java.lang.Object attach(java.lang.Object arg0)
- =
  public final java.lang.Object attachment()
- =
  public abstract void cancel()
- =
  public abstract java.nio.channels.SelectableChannel channel()
- =
  public abstract int interestOps()
- =
  public abstract java.nio.channels.SelectionKey interestOps(int arg0)
- =
  public int interestOpsAnd(int arg0)
- =
  public int interestOpsOr(int arg0)
- =
  public final boolean isAcceptable()
- =
  public final boolean isConnectable()
- =
  public final boolean isReadable()
- =
  public abstract boolean isValid()
- =
  public final boolean isWritable()
- =
  public abstract int readyOps()
- =
  public abstract java.nio.channels.Selector selector()

## Summary

No differences.