Class MysqlOpRetryTool
java.lang.Object
io.datarouter.client.mysql.execution.MysqlOpRetryTool
public class MysqlOpRetryTool
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_BACKOFF_MSstatic intDEFAULT_NUM_ATTEMPTSstatic intNUM_ROLLBACK_ATTEMPTSstatic longROLLBACK_BACKOFF_MS -
Constructor Summary
Constructors Constructor Description MysqlOpRetryTool() -
Method Summary
Modifier and Type Method Description static <T> TtryNTimes(SessionExecutorCallable<T> opCallable, io.datarouter.storage.config.Config config)
-
Field Details
-
NUM_ROLLBACK_ATTEMPTS
public static final int NUM_ROLLBACK_ATTEMPTS- See Also:
- Constant Field Values
-
ROLLBACK_BACKOFF_MS
public static final long ROLLBACK_BACKOFF_MS- See Also:
- Constant Field Values
-
DEFAULT_NUM_ATTEMPTS
public static final int DEFAULT_NUM_ATTEMPTS- See Also:
- Constant Field Values
-
DEFAULT_BACKOFF_MS
public static final long DEFAULT_BACKOFF_MS- See Also:
- Constant Field Values
-
-
Constructor Details
-
MysqlOpRetryTool
public MysqlOpRetryTool()
-
-
Method Details
-
tryNTimes
public static <T> T tryNTimes(SessionExecutorCallable<T> opCallable, io.datarouter.storage.config.Config config)
-