Interface AsyncTransactionWork<T>

Type Parameters:
T - the return type of this work.

@Deprecated public interface AsyncTransactionWork<T>
Deprecated.
Callback that executes operations against a given AsyncTransaction. To be used with AsyncSession.readTransactionAsync(AsyncTransactionWork) and AsyncSession.writeTransactionAsync(AsyncTransactionWork) (AsyncTransactionWork)} methods.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Executes all given operations against the same transaction.
  • Method Details

    • execute

      T execute(AsyncTransaction tx)
      Deprecated.
      Executes all given operations against the same transaction.
      Parameters:
      tx - the transaction to use.
      Returns:
      some result object or null if none.