org.jppf.server.nio.multiplexer
Class ReceivingState
java.lang.Object
org.jppf.server.nio.NioState<MultiplexerTransition>
org.jppf.server.nio.multiplexer.MultiplexerServerState
org.jppf.server.nio.multiplexer.ReceivingState
public class ReceivingState
- extends MultiplexerServerState
State of receiving data on a channel.
When data is received, it is forwarded to the linked channel, so that it can be
sent to the other side of the multiplexer connection.
- Author:
- Laurent Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReceivingState
public ReceivingState(MultiplexerNioServer server)
- Initialize this state.
- Parameters:
server - the server that handles this state.
performTransition
public MultiplexerTransition performTransition(ChannelWrapper<?> wrapper)
throws Exception
- Execute the action associated with this channel state.
- Specified by:
performTransition in class NioState<MultiplexerTransition>
- Parameters:
wrapper - 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.