Uses of Class
org.jdbi.v3.core.transaction.SerializableTransactionRunner.Configuration
Package
Description
The
transaction
package implements the strategy
Jdbi
uses to open and close transactions.-
Uses of SerializableTransactionRunner.Configuration in org.jdbi.v3.core.transaction
Modifier and TypeClassDescriptionstatic class
Configuration for serializable transaction runner.Modifier and TypeMethodDescriptionSerializableTransactionRunner.Configuration.createCopy()
SerializableTransactionRunner.Configuration.setMaxRetries
(int maxRetries) Sets the maximum number of retry attempts before aborting.SerializableTransactionRunner.Configuration.setOnFailure
(Consumer<List<Exception>> onFailure) Set a consumer that is called with a list of exceptions during a run.SerializableTransactionRunner.Configuration.setOnSuccess
(Consumer<List<Exception>> onSuccess) Sets a consumer that is called after a run has completed successfully.SerializableTransactionRunner.Configuration.setSerializationFailureSqlState
(String serializationFailureSqlState) Sets the SQL state to consider as a serialization failure.