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.Response
commit()
void
Enlist any operations that modify the session.com.google.protobuf.ByteString
boolean
isActive()
void
listenForCommit
(Runnable listener) Add a listener to be called after the transaction commits.void
rollback()
void
Methods inherited from class com.googlecode.objectify.impl.AsyncDatastoreReaderWriterImpl
delete, get, put, run, runAggregation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
enlist
in interfacePrivateAsyncTransaction
-
listenForCommit
Add a listener to be called after the transaction commits.- Specified by:
listenForCommit
in interfaceAsyncTransaction
-
getTransactionHandle
public com.google.protobuf.ByteString getTransactionHandle()- Specified by:
getTransactionHandle
in interfaceAsyncTransaction
-
runCommitListeners
public void runCommitListeners()- Specified by:
runCommitListeners
in interfacePrivateAsyncTransaction
-
commit
public com.google.cloud.datastore.Transaction.Response commit()- Specified by:
commit
in interfaceAsyncTransaction
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceAsyncTransaction
-
rollback
public void rollback()- Specified by:
rollback
in interfaceAsyncTransaction
-