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

字段摘要
protected  int numOfRetries
           
protected  int waitIncreaseFactor
           
protected  int waitTimeInMs
           
 
从类 org.activiti.engine.impl.interceptor.AbstractCommandInterceptor 继承的字段
next
 
构造方法摘要
RetryInterceptor()
           
 
方法摘要
<T> T
execute(CommandConfig config, Command<T> command)
           
 int getNumOfRetries()
           
 int getWaitIncreaseFactor()
           
 int getWaitTimeInMs()
           
 void setNumOfRetries(int numOfRetries)
           
 void setWaitIncreaseFactor(int waitIncreaseFactor)
           
 void setWaitTimeInMs(int waitTimeInMs)
           
protected  void waitBeforeRetry(long waitTime)
           
 
从类 org.activiti.engine.impl.interceptor.AbstractCommandInterceptor 继承的方法
getNext, setNext
 
从类 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.