Package com.googlecode.objectify.impl
Interface AsyncTransaction
- All Superinterfaces:
AsyncDatastoreReaderWriter
- All Known Subinterfaces:
PrivateAsyncTransaction
- All Known Implementing Classes:
AsyncTransactionImpl
,CachingAsyncTransaction
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
Modifier and TypeMethodDescriptioncom.google.cloud.datastore.Transaction.Response
commit()
com.google.protobuf.ByteString
boolean
isActive()
void
listenForCommit
(Runnable listener) void
rollback()
Methods inherited from interface com.googlecode.objectify.impl.AsyncDatastoreReaderWriter
delete, get, get, put, put, run, runAggregation
-
Method Details
-
commit
com.google.cloud.datastore.Transaction.Response commit() -
isActive
boolean isActive() -
rollback
void rollback() -
listenForCommit
-
getTransactionHandle
com.google.protobuf.ByteString getTransactionHandle()
-