lib/src/main/java/io/v/v23/syncbase/Batch.java
/**
     * Runs the given batch operation, managing retries and
     * {@link BatchDatabase#commit commit()}/{@link BatchDatabase#abort abort()}s.
     * <p>
     * The returned future is guaranteed to be executed on an {@link java.util.concurrent.Executor}
     * specified in {@code context} (see {@link io.v.v23.V#withExecutor}).
     * <p>
     * The returned future will fail with {@link java.util.concurrent.CancellationException} if
     * {@code context} gets canceled.
     *
     * @param context Vanadium context
     * @param db      database on which the batch operation is to be performed
     * @param opts    batch configuration
     * @param op      batch operation
     */
Runs the given batch operation, managing retries and
BatchDatabase#commit commit()/ BatchDatabase#abort abort()s.

The returned future is guaranteed to be executed on an  java.util.concurrent.Executor
specified in  context .

The returned future will fail with  java.util.concurrent.CancellationException if
context gets canceled.

@param context Vanadium context
@param db      database on which the batch operation is to be performed
@param opts    batch configuration
@param op      batch operation
Runs the given batch operation managing retries and BatchDatabase#commit commit () / BatchDatabase#abort abort () s . The returned future is guaranteed to be executed on an java . util . concurrent . Executor specified in context . The returned future will fail with java . util . concurrent . CancellationException if context gets canceled . @param context Vanadium context @param db database on which the batch operation is to be performed @param opts batch configuration @param op batch operation
@CheckReturnValue
    public static ListenableFuture<Void> runInBatch(VContext context, Database db,
                                                    BatchOptions opts, BatchOperation op) {
        return VFutures.withUserLandChecks(context,
                Futures.transform(Futures.immediateFuture(false),
                        getRetryFn(context, db, opts, op, 0)));
    }
@ CheckReturnValue public static ListenableFuture < Void > runInBatch ( VContext context , Database db , BatchOptions opts , BatchOperation op ) { return VFutures . withUserLandChecks ( context , Futures . transform ( Futures . immediateFuture ( false ) , getRetryFn ( context , db , opts , op , 0 ) ) ) ; }
Runs the given batch operation, managing retries and
 {@link BatchDatabase#commit commit()}/{@link BatchDatabase#abort abort()}s.
 <p>
 The returned future is guaranteed to be executed on an {@link java.util.concurrent.Executor}
 specified in {@code context} (see {@link io.v.v23.V#withExecutor}).
Runs the given batch operation managing retries and { @link BatchDatabase#commit commit () } / { @link BatchDatabase#abort abort () } s . <p > The returned future is guaranteed to be executed on an { @link java . util . concurrent . Executor } specified in { @code context } ( see { @link io . v . v23 . V#withExecutor } ) .