org.jppf.server.nio
Class NioTransition<S extends Enum>

java.lang.Object
  extended by org.jppf.server.nio.NioTransition<S>
Type Parameters:
S - the type of states this transition goes to.

public class NioTransition<S extends Enum>
extends Object

Instances of this class define the transition of one NIO state to another.

Author:
Laurent Cohen

Constructor Summary
NioTransition(S state, int interestOps)
          Create a new transition with the specified state and set of interests.
 
Method Summary
 int getInterestOps()
          Get the set of IO operations the corresponding channel isinterested in after the transition.
 S getState()
          Get the new state after the transition.
 void setInterestOps(int interestOps)
          Set the set of IO operations the corresponding channel isinterested in after the transition.
 void setState(S state)
          Set the new state after the transition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioTransition

public NioTransition(S state,
                     int interestOps)
Create a new transition with the specified state and set of interests.

Parameters:
state - the state after the transition.
interestOps - the new set of interests after the transition.
Method Detail

getInterestOps

public int getInterestOps()
Get the set of IO operations the corresponding channel isinterested in after the transition.

Returns:
the set of interests as an int value.

setInterestOps

public void setInterestOps(int interestOps)
Set the set of IO operations the corresponding channel isinterested in after the transition.

Parameters:
interestOps - the set of interests as an int value.

getState

public S getState()
Get the new state after the transition.

Returns:
an NioState instance.

setState

public void setState(S state)
Set the new state after the transition.

Parameters:
state - an NioState instance.


Copyright © 2005-2010 JPPF Team.