Package com.googlecode.objectify.impl
Class AsyncTransactionImpl
java.lang.Object
com.googlecode.objectify.impl.AsyncDatastoreReaderWriterImpl
com.googlecode.objectify.impl.AsyncTransactionImpl
- All Implemented Interfaces:
AsyncDatastoreReaderWriter,AsyncTransaction,PrivateAsyncTransaction
public class AsyncTransactionImpl
extends AsyncDatastoreReaderWriterImpl
implements PrivateAsyncTransaction
-
Field Summary
Fields inherited from class com.googlecode.objectify.impl.AsyncDatastoreReaderWriterImpl
MAX_READ_SIZE, MAX_WRITE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAsyncTransactionImpl(com.google.cloud.datastore.Transaction raw, Runnable afterCommit) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.datastore.Transaction.Responsecommit()voidEnlist any operations that modify the session.com.google.protobuf.ByteStringbooleanisActive()voidlistenForCommit(Runnable listener) Add a listener to be called after the transaction commits.voidrollback()voidMethods inherited from class com.googlecode.objectify.impl.AsyncDatastoreReaderWriterImpl
delete, get, put, run, runAggregationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.googlecode.objectify.impl.AsyncDatastoreReaderWriter
delete, get, get, put, put, run, runAggregation
-
Constructor Details
-
AsyncTransactionImpl
-
-
Method Details
-
enlist
Enlist any operations that modify the session.- Specified by:
enlistin interfacePrivateAsyncTransaction
-
listenForCommit
Add a listener to be called after the transaction commits.- Specified by:
listenForCommitin interfaceAsyncTransaction
-
getTransactionHandle
public com.google.protobuf.ByteString getTransactionHandle()- Specified by:
getTransactionHandlein interfaceAsyncTransaction
-
runCommitListeners
public void runCommitListeners()- Specified by:
runCommitListenersin interfacePrivateAsyncTransaction
-
commit
public com.google.cloud.datastore.Transaction.Response commit()- Specified by:
commitin interfaceAsyncTransaction
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceAsyncTransaction
-
rollback
public void rollback()- Specified by:
rollbackin interfaceAsyncTransaction
-