public static class JdbcIO.DefaultRetryStrategy extends java.lang.Object implements JdbcIO.RetryStrategy
Predicate
we use to detect DeadLock. It basically test if the
SQLException.getSQLState()
equals 40001 or 40P01. 40001 is the SQL State used by most
of databases to identify deadlock, and 40P01 is specific to PostgreSQL (see PostgreSQL documentation).Constructor and Description |
---|
DefaultRetryStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(java.sql.SQLException e) |
public boolean apply(java.sql.SQLException e)
apply
in interface JdbcIO.RetryStrategy