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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> Texecute(org.flywaydb.core.internal.util.SqlCallable<T> callable) 
- 
Constructor Details- 
CockroachDBRetryingStrategypublic CockroachDBRetryingStrategy()
 
- 
- 
Method Details- 
execute- Specified by:
- executein interface- org.flywaydb.core.internal.database.DatabaseExecutionStrategy
- Throws:
- SQLException
 
 
-