Skip to content

Commit

Permalink
fix(doc): Add discriptions for TransactionCallable interface (#1644)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
cindy-peng and cloud-java-bot authored Oct 29, 2024
1 parent 5899f7c commit 173a883
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public interface Datastore extends Service<DatastoreOptions>, DatastoreReaderWri
* @param <T> the type of the return value
*/
interface TransactionCallable<T> {
/**
* Callback's invoke method for the TransactionCallable.
*
* @param readerWriter DatastoreReaderWriter associated with the new transaction
* @return T The transaction result
* @throws Exception upon failure
*/
T run(DatastoreReaderWriter readerWriter) throws Exception;
}

Expand Down

0 comments on commit 173a883

Please sign in to comment.