Package com.mongodb.client
Interface TransactionBody<T>
-
- Type Parameters:
T
- the return type
@Deprecated(since="2021-05-27") public interface TransactionBody<T>
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A functional interface representing the body of a transaction. Implementations of this interface should be idempotent in order to support transaction retry logic.- Since:
- 3.10
- See Also:
ClientSession.withTransaction(TransactionBody)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
execute()
Deprecated.Execute the body of the transaction.
-
-
-
Method Detail
-
execute
T execute()
Deprecated.Execute the body of the transaction.- Returns:
- the result of the transaction body
-
-