Interceptor that is capable of retrying command execution. It is intended to retry only if right exception has been thrown. By default it will look for
org.hibernate.StaleObjectStateException
and only then attempt to retry. Since this is Hibernate specific class another can be given as system property to override default. Name of the system property
org.kie.optlock.exclass
and its value should be fully qualified class name of the exception that indicates OptimisticLocking. By default it will:
- Retry 3 times
- First retry will be attempted after 50 milliseconds
- next retries will be calculated as last sleep time multiplied by a factor (default factor is 4)
In case all retries failed origin exception will be thrown.