org.jppf.server.nio
Class NioState<T extends Enum<T>>
java.lang.Object
org.jppf.server.nio.NioState<T>
- Type Parameters:
T - the type of transitions for this state.
- Direct Known Subclasses:
- MultiplexerServerState, MultiplexerServerState
public abstract class NioState<T extends Enum<T>>
- extends Object
State associated with a socket channel.
- Author:
- Laurent Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NioState
public NioState()
performTransition
public abstract T performTransition(ChannelWrapper<?> channel)
throws Exception
- Execute the action associated with this channel state.
- Parameters:
channel - the selection key corresponding to the channel and selector for this state.
- Returns:
- a state transition as an
NioTransition instance.
- Throws:
Exception - if an error occurs while transitioning to another state.
Copyright © 2005-2010 JPPF Team.