public class CrDbRetryInterceptor extends AbstractCommandInterceptor
RetryInterceptor, but adapted for CRDB.
This probably won't work in environments such as Spring if the transaction is externally managed| Modifier and Type | Field and Description |
|---|---|
protected int |
nrRetries |
protected int |
waitTime |
protected int |
waitTimeIncrease |
next| Constructor and Description |
|---|
CrDbRetryInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(CommandConfig config,
Command<T> command) |
protected boolean |
isTransactionRetryException(Throwable exception) |
protected void |
waitBeforeRetry(long waitTime) |
getNext, setNextprotected int nrRetries
protected int waitTime
protected int waitTimeIncrease
public <T> T execute(CommandConfig config, Command<T> command)
protected void waitBeforeRetry(long waitTime)
protected boolean isTransactionRetryException(Throwable exception)
Copyright © 2019 Flowable. All rights reserved.