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 a CrdbTransactionRetryException). The interceptor then retries the Command multiple times, according to the retries set by the ProcessEngineConfigurationImpl commandRetries property.
  • Field Details

    • retries

      protected int retries
  • Constructor Details

    • CrdbTransactionRetryInterceptor

      public CrdbTransactionRetryInterceptor(int retries)
  • Method Details

    • execute

      public <T> T execute(Command<T> command)
    • isRetryable

      protected boolean isRetryable(Command<?> command)