org.jbpm.client.impl
Class RetryInterceptor
java.lang.Object
org.jbpm.client.impl.Interceptor
org.jbpm.client.impl.RetryInterceptor
- All Implemented Interfaces:
- CommandService
public class RetryInterceptor
- extends Interceptor
retries the command execution in case hibernate throws optimistic locking
(StaleObjectException) exceptions.
- Author:
- Tom Baeyens
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)
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)