org.activiti.engine.impl.interceptor
类 RetryInterceptor
java.lang.Object
org.activiti.engine.impl.interceptor.AbstractCommandInterceptor
org.activiti.engine.impl.interceptor.RetryInterceptor
- 所有已实现的接口:
- CommandInterceptor
- 直接已知子类:
- JtaRetryInterceptor
public class RetryInterceptor
- extends AbstractCommandInterceptor
Intercepts ActivitiOptimisticLockingException
and tries to run the
same command again. The number of retries and the time waited between retries
is configurable.
- 作者:
- Daniel Meyer
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numOfRetries
protected int numOfRetries
waitTimeInMs
protected int waitTimeInMs
waitIncreaseFactor
protected int waitIncreaseFactor
RetryInterceptor
public RetryInterceptor()
execute
public <T> T execute(CommandConfig config,
Command<T> command)
waitBeforeRetry
protected void waitBeforeRetry(long waitTime)
setNumOfRetries
public void setNumOfRetries(int numOfRetries)
setWaitIncreaseFactor
public void setWaitIncreaseFactor(int waitIncreaseFactor)
setWaitTimeInMs
public void setWaitTimeInMs(int waitTimeInMs)
getNumOfRetries
public int getNumOfRetries()
getWaitIncreaseFactor
public int getWaitIncreaseFactor()
getWaitTimeInMs
public int getWaitTimeInMs()
Copyright © 2013 Alfresco. All rights reserved.