|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the actionpublic 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 |
|---|
T recoverWhen(RecoverCondition condition,
RecoverAction recoverAction)
Note: The condition and recover action must fit together. Otherwise an IllegalArgumentException is thrown.
condition - the conditionrecoverAction - the recover action
boolean hasRecoverActions()
true if recover actions were set, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||