Interface Datastore.TransactionCallable<T> (2.20.1)

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

Name Description
T

Methods

run(DatastoreReaderWriter readerWriter)

public abstract T run(DatastoreReaderWriter readerWriter)
Parameter
Name Description
readerWriter DatastoreReaderWriter
Returns
Type Description
T
Exceptions
Type Description
Exception