org.jbpm.client.impl
Class RetryInterceptor

java.lang.Object
  extended by org.jbpm.client.impl.Interceptor
      extended by 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

Field Summary
 
Fields inherited from class org.jbpm.client.impl.Interceptor
next
 
Constructor Summary
RetryInterceptor()
           
 
Method Summary
<T> T
execute(Command<T> command)
           
 long getDelay()
           
 long getDelayFactor()
           
 int getRetries()
           
 void setDelay(long delay)
           
 void setDelayFactor(long delayFactor)
           
 void setRetries(int retries)
           
 
Methods inherited from class org.jbpm.client.impl.Interceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryInterceptor

public RetryInterceptor()
Method Detail

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)