com.asdf.common
Class ChangeRequest

java.lang.Object
  extended by com.asdf.common.ChangeRequest

public class ChangeRequest
extends java.lang.Object

ChangeRequest is a request for NIO channel to change operation of the channel.

Author:
asdf

Field Summary
static int CHANGEOPS
          Change operation.
 int ops
           
static int REGISTER
          Register operation.
 java.nio.channels.SocketChannel socket
           
 int type
           
static int WRITE
          Write operation.
 
Constructor Summary
ChangeRequest(java.nio.channels.SocketChannel socket, int type, int ops)
          Constructs a new ChangeRequest.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGISTER

public static final int REGISTER
Register operation.

See Also:
Constant Field Values

CHANGEOPS

public static final int CHANGEOPS
Change operation.

See Also:
Constant Field Values

WRITE

public static final int WRITE
Write operation.

See Also:
Constant Field Values

socket

public java.nio.channels.SocketChannel socket

type

public int type

ops

public int ops
Constructor Detail

ChangeRequest

public ChangeRequest(java.nio.channels.SocketChannel socket,
                     int type,
                     int ops)
Constructs a new ChangeRequest.

Parameters:
socket - Associated socket channel.
type - Type of operation.
ops - Operation to which channels operation should be changed to.