Package com.googlecode.objectify.impl
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.cloud.datastore.Transaction.Response
commit()
com.google.protobuf.ByteString
getTransactionHandle()
boolean
isActive()
void
listenForCommit(Runnable listener)
void
rollback()
-
-
-
Method Detail
-
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()
-
-