Interface AsyncTransaction

All Superinterfaces:
AsyncDatastoreReaderWriter
All Known Subinterfaces:
PrivateAsyncTransaction
All Known Implementing Classes:
AsyncTransactionImpl, CachingAsyncTransaction

public interface AsyncTransaction extends AsyncDatastoreReaderWriter
The new datastore SDK has a neat structure of interfaces and implementations (transaction, datastorereader, etc) but doesn't currently support async operations. We need to shim in a Future-based API so that we can seamlessly support it when it becomes available. We'll remove this parallel hierarchy then.
  • Method Details

    • commit

      com.google.cloud.datastore.Transaction.Response commit()
    • isActive

      boolean isActive()
    • rollback

      void rollback()
    • listenForCommit

      void listenForCommit(Runnable listener)
    • getTransactionHandle

      com.google.protobuf.ByteString getTransactionHandle()