org.jppf.server.nio
Class StateTransitionTask<S extends Enum<S>,T extends Enum<T>>
java.lang.Object
org.jppf.server.nio.StateTransitionTask<S,T>
- Type Parameters:
S - the type of the states to use.T - the type of the transitions to use.
- All Implemented Interfaces:
- Runnable
public class StateTransitionTask<S extends Enum<S>,T extends Enum<T>>
- extends Object
- implements Runnable
Instances of this class perform the transition of a channel from one state to another.
They extend the Runnable interface so they can be executed concurrently by a pool of threads.
- Author:
- Laurent Cohen
|
Method Summary |
void |
run()
Perform the state transition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateTransitionTask
public StateTransitionTask(ChannelWrapper<?> channel,
NioServerFactory<S,T> factory)
- Initialize this task with the specified key and factory.
- Parameters:
channel - the channel whose state is changing.factory - the factory for the server that runs this task.
run
public void run()
- Perform the state transition.
- Specified by:
run in interface Runnable
- See Also:
Runnable.run()
Copyright © 2005-2010 JPPF Team.