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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetOrder()intinvoke(org.aopalliance.intercept.MethodInvocation invocation) voidsetMaxRetries(int maxRetries) voidsetOrder(int order) voidsetWaitTime(int waitTime)
-
Constructor Details
-
RetryAdvice
public RetryAdvice()
-
-
Method Details
-
invoke
- 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)
-