net.sf.oxclient.aspects.retry
Class RetryHandler

java.lang.Object
  extended by net.sf.oxclient.aspects.retry.RetryHandler

public class RetryHandler
extends Object

Author:
Björn Voß

Constructor Summary
RetryHandler()
           
RetryHandler(Map<ParameterSaveType,IParameterSaver> parameterSaverMap)
          This Constructor is only for unit testing!
 
Method Summary
 Object doWithRetry(org.aspectj.lang.ProceedingJoinPoint pjp, RetryIt retry)
           
 int getDelay()
           
 int getRetries()
           
 void setDelay(int delay)
           
 void setRetries(int retries)
           
 void shouldRetry(RetryIt retry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryHandler

public RetryHandler(Map<ParameterSaveType,IParameterSaver> parameterSaverMap)
This Constructor is only for unit testing!
It should never be used.

The AspectJ compiler will also use the default constructor.

Parameters:
parameterSaverMap -

RetryHandler

public RetryHandler()
Method Detail

shouldRetry

public void shouldRetry(RetryIt retry)

doWithRetry

public Object doWithRetry(org.aspectj.lang.ProceedingJoinPoint pjp,
                          RetryIt retry)
                   throws Throwable
Throws:
Throwable

getRetries

public int getRetries()

setRetries

public void setRetries(int retries)

getDelay

public int getDelay()

setDelay

public void setDelay(int delay)


Copyright © 2007. All Rights Reserved.