Interface Datastore.TransactionCallable<T> (2.29.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticinterface 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)
publicabstractTrun(DatastoreReaderWriterreaderWriter)Callback's invoke method for the TransactionCallable.
| Parameter | |
|---|---|
| Name | Description |
readerWriter |
DatastoreReaderWriter DatastoreReaderWriter associated with the new transaction |
| Returns | |
|---|---|
| Type | Description |
T |
T The transaction result |
| Exceptions | |
|---|---|
| Type | Description |
Exception |
upon failure |