org.jbpm.pvm.internal.svc
Class RetryInterceptor
java.lang.Object
org.jbpm.pvm.internal.svc.Interceptor
org.jbpm.pvm.internal.svc.RetryInterceptor
- All Implemented Interfaces:
- CommandService
- Direct Known Subclasses:
- JtaRetryInterceptor
public class RetryInterceptor
- extends Interceptor
retries the command execution in case hibernate throws optimistic locking
(StaleObjectException) exceptions.
- Author:
- Tom Baeyens, Huisheng Xu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetryInterceptor
public RetryInterceptor()
execute
public <T> T execute(Command<T> command)
isCausedByOptimisticLockingFailure
protected boolean isCausedByOptimisticLockingFailure(java.lang.Throwable throwable)
- fix for JBPM-2864.
If this exception is caused by StaleStateException, then we should retry.
getRetries
public int getRetries()
setRetries
public void setRetries(int retries)
getDelay
public long getDelay()
setDelay
public void setDelay(long delay)
getDelayFactor
public long getDelayFactor()
setDelayFactor
public void setDelayFactor(long delayFactor)
Copyright © 2010 JBoss Community. All Rights Reserved.