public interface Configurator
In order to use, invoke the various start
, stop
, create
, delete
, update
, methods in the intended order of operation, then invoke one of the
commit
methods to complete the transaction.
This code is experimental. While this class is functional and tested, it may change or be removed in a future version of the library.
Modifier and Type | Method and Description |
---|---|
UUID |
add(Operation operation)
Adds an
Operation step to the transaction. |
OperationReport |
commit(String auditMessage,
String... auditParams)
Sequentially invokes all the transaction's operations, committing their changes.
|
OperationReport commit(String auditMessage, String... auditParams)
After commit is called, this Configurator
should not be used again.
In the case of a successful commit, changes should be logged. auditParams
are
interpolated into the auditMessage
using the Log4J interpolation style.
auditMessage
- In the case of a successful commit, the message to pass to be auditedauditParams
- In the case of a successful commit, optional parameters to pass to be
interpolated into the message.This work is licensed under a Creative Commons Attribution 4.0 International License.