Skip to content

Commit 173a883

Browse files
fix(doc): Add discriptions for TransactionCallable interface (#1644)
* fix(doc): Add discriptions for TransactionCallable interface * chore: generate libraries at Mon Oct 28 22:49:19 UTC 2024 --------- Co-authored-by: cloud-java-bot <[email protected]>
1 parent 5899f7c commit 173a883

File tree

1 file changed

+7
-0
lines changed
  • google-cloud-datastore/src/main/java/com/google/cloud/datastore

1 file changed

+7
-0
lines changed

google-cloud-datastore/src/main/java/com/google/cloud/datastore/Datastore.java

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public interface Datastore extends Service<DatastoreOptions>, DatastoreReaderWri
5151
* @param <T> the type of the return value
5252
*/
5353
interface TransactionCallable<T> {
54+
/**
55+
* Callback's invoke method for the TransactionCallable.
56+
*
57+
* @param readerWriter DatastoreReaderWriter associated with the new transaction
58+
* @return T The transaction result
59+
* @throws Exception upon failure
60+
*/
5461
T run(DatastoreReaderWriter readerWriter) throws Exception;
5562
}
5663

0 commit comments

Comments
 (0)