Interface BatchOperationExecutor


  • @Role
    public interface BatchOperationExecutor
    Executes a given operation and wraps its sub-operations as part of the same batch (by passing a batch ID to the ExecutionContext).
    Since:
    9.5RC1
    Version:
    $Id: 543ed0337bfd2331c9d63d27373f3b3d2f065454 $
    • Method Detail

      • execute

        <E extends Exception> void execute​(BatchOperation<E> operation)
                                    throws E extends Exception
        Executes a given operation and generates a batch ID if none is already set.
        Type Parameters:
        E - the type of exception thrown by the BatchOperation
        Parameters:
        operation - the batch operation to execute
        Throws:
        E - in case of problems
        E extends Exception
      • execute

        <E extends Exception> void execute​(BatchOperation<E> operation,
                                           String batchId)
                                    throws E extends Exception
        Type Parameters:
        E - the type of exception thrown by the BatchOperation
        Parameters:
        operation - the batch operation to execute
        batchId - the batch ID to use if none is already set. If null, a value will be generated
        Throws:
        E - in case of problems
        E extends Exception
      • getCurrentBatchId

        String getCurrentBatchId()
        Returns:
        the current Execution's batch ID or null if none is set