Class CrdbTransactionRetryInterceptor
- java.lang.Object
-
- org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
-
- org.camunda.bpm.engine.impl.interceptor.CrdbTransactionRetryInterceptor
-
- All Implemented Interfaces:
CommandExecutor
public class CrdbTransactionRetryInterceptor extends CommandInterceptor
A CockroachDB-specific Command interceptor to catch optimistic locking errors (classified as aCrdbTransactionRetryException
). The interceptor then retries the Command multiple times, according to the retries set by theProcessEngineConfigurationImpl
commandRetries property.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
retries
-
Fields inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
next
-
-
Constructor Summary
Constructors Constructor Description CrdbTransactionRetryInterceptor(int retries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
execute(Command<T> command)
protected boolean
isRetryable(Command<?> command)
-
Methods inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
getNext, setNext
-
-