Package org.duracloud.common.aop
Class RetryAdvice
- java.lang.Object
-
- org.duracloud.common.aop.RetryAdvice
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor,org.springframework.core.Ordered
public class RetryAdvice extends Object implements org.aopalliance.intercept.MethodInterceptor, org.springframework.core.Ordered
-
-
Constructor Summary
Constructors Constructor Description RetryAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxRetries()intgetOrder()intgetWaitTime()Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)voidsetMaxRetries(int maxRetries)voidsetOrder(int order)voidsetWaitTime(int waitTime)
-
-
-
Method Detail
-
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-
getMaxRetries
public int getMaxRetries()
-
setMaxRetries
public void setMaxRetries(int maxRetries)
-
getWaitTime
public int getWaitTime()
-
setWaitTime
public void setWaitTime(int waitTime)
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
-