@Role
public interface BatchOperationExecutor
ExecutionContext
).Modifier and Type | Method and Description |
---|---|
<E extends Exception> |
execute(BatchOperation<E> operation)
Executes a given operation and generates a batch ID if none is already set.
|
<E extends Exception> |
execute(BatchOperation<E> operation,
String batchId) |
String |
getCurrentBatchId() |
<E extends Exception> void execute(BatchOperation<E> operation) throws E extends Exception
E
- the type of exception thrown by the BatchOperation
operation
- the batch operation to executeE
- in case of problemsE extends Exception
<E extends Exception> void execute(BatchOperation<E> operation, String batchId) throws E extends Exception
E
- the type of exception thrown by the BatchOperation
operation
- the batch operation to executebatchId
- the batch ID to use if none is already set. If null
, a value will be generatedE
- in case of problemsE extends Exception
String getCurrentBatchId()
Execution
's batch ID or null
if none is setCopyright © 2004–2021 XWiki. All rights reserved.