blob: 1dd53e7b14e5db857388383f288025b4e3736be6 [file] [log] [blame]
package org.eclipse.ote.commands.server;
import org.eclipse.ote.bytemessage.OteByteMessageResponseCallable;
import org.eclipse.ote.commands.messages.CancelCommand;
public class CancelCommandHandler implements OteByteMessageResponseCallable<CancelCommand> {
private InputCancelCommand inputCancelCommand;
public CancelCommandHandler(InputCancelCommand inputCancelCommand) {
this.inputCancelCommand = inputCancelCommand;
}
@Override
public synchronized void call(CancelCommand received) {
InputCancelCommand newInput = new InputCancelCommand(inputCancelCommand);
newInput.set(received);
newInput.addToStateMachineQueue();
}
}