| Package | Description |
|---|---|
| net.java.trueupdate.manager.spec |
Specifies an API for update managers.
|
| net.java.trueupdate.manager.spec.cmd |
Specifies an API for revertible commands with durable side effects.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
UpdateContext.decorate(Command cmd,
CommandId id)
Decorates the given command depending on the given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
UpdateContext.decorate(Command cmd,
CommandId id)
Decorates the given command depending on the given identifier.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommand
A base class for commands which need a separate start
method.
|
class |
CompositeCommand
A composite command.
|
| Modifier and Type | Method and Description |
|---|---|
static Command |
Commands.atomic(Command cmd)
Decorates the given command with another command to ensure that the
revert() method of the given command is only called if a
previous call to the perform() method has succeeded, for
example if a subsequent command in a CompositeCommand fails. |
static Command |
Commands.time(Command cmd,
LogContext ctx)
Decorates the given command with another command which logs the
duration of each command method using the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static Command |
Commands.atomic(Command cmd)
Decorates the given command with another command to ensure that the
revert() method of the given command is only called if a
previous call to the perform() method has succeeded, for
example if a subsequent command in a CompositeCommand fails. |
static void |
Commands.execute(Command cmd)
Executes the given command.
|
static Command |
Commands.time(Command cmd,
LogContext ctx)
Decorates the given command with another command which logs the
duration of each command method using the given configuration.
|
| Constructor and Description |
|---|
CompositeCommand(Command... commands) |
Copyright © 2013–2016 Schlichtherle IT Services. All rights reserved.