Package hudson.remoting
Interface CommandTransport.CommandReceiver
- Enclosing class:
- CommandTransport
protected static interface CommandTransport.CommandReceiver
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the channel that a newCommandwas received from the other side.voidIndicates that the transport has encountered a problem.
-
Method Details
-
handle
Notifies the channel that a newCommandwas received from the other side.Channelperforms all the error recovery of the error resulting from the command invocation.Channelimplements this method in a non-reentrant fashion; a transport can invoke this method from different threads, but as the class javadoc states, the transport must guarantee in-order delivery of the commands, and that means you cannot call this method concurrently.- Parameters:
cmd- The command received. This object must be read from the payload usingCommand.readFrom(Channel, byte[]).
-
terminate
Indicates that the transport has encountered a problem. This tells the channel that it shouldn't expect future invocation ofhandle(Command), and it'll abort the communication.
-