com.holonplatform.async.datastore.transaction

## Interface AsyncTransactionalOperation<R>

- Type Parameters:
    `R` - Operation result type
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface AsyncTransactionalOperation<R>

  Represents an asynchronous transactional operation execution.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `CompletionStage<R>` | `execute(AsyncTransaction transaction)` Execute a transactional operation using given `AsyncTransaction` and return a result.

- - ### Method Detail

    - #### execute

          CompletionStage<R> execute(AsyncTransaction transaction)

      Execute a transactional operation using given `AsyncTransaction` and return a result.
      Parameters:
        `transaction` - The transaction reference, which can be used to perform `AsyncTransaction.commit()` and `AsyncTransaction.rollback()` operations
      Returns:
        A `CompletionStage` which can be used to handle the asynchronous operation outcome and the operation result

Copyright © 2019 The Holon Platform. All rights reserved.