Interface Datastore.TransactionCallable<T> (2.13.3)

public static interface Datastore.TransactionCallable<T>

A callback for running with a transactional com.google.cloud.datastore.DatastoreReaderWriter. The associated transaction will be committed after a successful return from the run method. Any propagated exception will cause the transaction to be rolled-back.

Type Parameter

NameDescription
T

Methods

run(DatastoreReaderWriter readerWriter)

public abstract T run(DatastoreReaderWriter readerWriter)
Parameter
NameDescription
readerWriterDatastoreReaderWriter
Returns
TypeDescription
T
Exceptions
TypeDescription
Exception