Class CockroachRetryingTransactionalExecutionTemplate
java.lang.Object
migratedb.v1.core.internal.jdbc.TransactionalExecutionTemplate
migratedb.v1.core.internal.database.cockroachdb.CockroachRetryingTransactionalExecutionTemplate
- All Implemented Interfaces:
ExecutionTemplate
Spring-like template for executing transactions. Cockroach always operates with transaction isolation level
SERIALIZABLE and needs a retrying pattern.
-
Method Summary
-
Method Details
-
execute
Executes this callback within a transaction- Specified by:
executein interfaceExecutionTemplate- Overrides:
executein classTransactionalExecutionTemplate- Parameters:
transactionCallback- The callback to execute.- Returns:
- The result of the transaction code.
-