| Constructor and Description |
|---|
CompositeCommand(Command... commands) |
| Modifier and Type | Method and Description |
|---|---|
void |
perform()
Performs this command, thereby creating some durable side effects.
|
void |
revert()
Reverts any durable side effects of the
Command.perform() method. |
public CompositeCommand(Command... commands)
public void perform()
throws Exception
CommandCommand.revert() must get called.public void revert()
throws Exception
CommandCommand.perform() method.
If this method fails with an exception, then the state of the system may
be corrupted.Copyright © 2013–2016 Schlichtherle IT Services. All rights reserved.