public interface AsyncTransactional
AsyncTransaction as transaction handler.| Modifier and Type | Method and Description |
|---|---|
default <R> CompletionStage<R> |
withTransaction(AsyncTransactionalOperation<R> operation)
Execute given operation within a transaction and return a result.
|
<R> CompletionStage<R> |
withTransaction(AsyncTransactionalOperation<R> operation,
TransactionConfiguration transactionConfiguration)
Execute given operation within a transaction and return a result.
|
<R> CompletionStage<R> withTransaction(AsyncTransactionalOperation<R> operation, TransactionConfiguration transactionConfiguration)
AsyncTransaction reference is
provided to perform commit and rollback operations.R - Operation result typeoperation - Operation to execute (not null)transactionConfiguration - Transaction configurationCompletionStage which can be used to handle the asynchronous operation outcome and the
operation resultdefault <R> CompletionStage<R> withTransaction(AsyncTransactionalOperation<R> operation)
AsyncTransaction reference is
provided to perform commit and rollback operations.R - Operation result typeoperation - Operation to execute (not null)CompletionStage which can be used to handle the asynchronous operation outcome and the
operation resultCopyright © 2019 The Holon Platform. All rights reserved.