com.kuka.nav.recover
Interface RecoverableCommand<T extends AbstractCommand<T,?>>

Type Parameters:
T - the type of the action

public interface RecoverableCommand<T extends AbstractCommand<T,?>>

Interface declaring the implementing action as recoverable.


Method Summary
 boolean hasRecoverActions()
           
 T recoverWhen(RecoverCondition condition, RecoverAction recoverAction)
          Adds a new (condition, recover action)-pair to this command.
 

Method Detail

recoverWhen

T recoverWhen(RecoverCondition condition,
              RecoverAction recoverAction)
Adds a new (condition, recover action)-pair to this command. The recover action is executed when an error during command execution occurs and the given condition is fulfilled.

Note: The condition and recover action must fit together. Otherwise an IllegalArgumentException is thrown.

Parameters:
condition - the condition
recoverAction - the recover action
Returns:
this action (fluent interface)

hasRecoverActions

boolean hasRecoverActions()
Returns:
true if recover actions were set, false otherwise.


Copyright © 2019. All rights reserved.