T
- the return type of this work.public interface AsyncTransactionWork<T>
AsyncTransaction
.
To be used with AsyncSession.readTransactionAsync(AsyncTransactionWork)
and
AsyncSession.writeTransactionAsync(AsyncTransactionWork)
(AsyncTransactionWork)} methods.Modifier and Type | Method and Description |
---|---|
T |
execute(AsyncTransaction tx)
Executes all given operations against the same transaction.
|
T execute(AsyncTransaction tx)
tx
- the transaction to use.null
if none.