Class CockroachDBRetryingStrategy
java.lang.Object
org.flywaydb.database.cockroachdb.CockroachDBRetryingStrategy
- All Implemented Interfaces:
org.flywaydb.core.internal.database.DatabaseExecutionStrategy
public class CockroachDBRetryingStrategy
extends Object
implements org.flywaydb.core.internal.database.DatabaseExecutionStrategy
CockroachDB recommend the use of retries should we see a SQL error code 40001, which represents a lock wait timeout.
This class implements an appropriate retry pattern.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
execute
(org.flywaydb.core.internal.util.SqlCallable<T> callable)
-
Constructor Details
-
CockroachDBRetryingStrategy
public CockroachDBRetryingStrategy()
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceorg.flywaydb.core.internal.database.DatabaseExecutionStrategy
- Throws:
SQLException
-