Package org.duracloud.durastore.aop
Class VerifySpaceCreationAdvice
- java.lang.Object
-
- org.duracloud.durastore.aop.VerifySpaceCreationAdvice
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.springframework.aop.AfterAdvice,org.springframework.aop.AfterReturningAdvice,org.springframework.core.Ordered
public class VerifySpaceCreationAdvice extends Object implements org.springframework.aop.AfterReturningAdvice, org.springframework.core.Ordered
Verifies that when a space is created it is available for access prior to returning. Assumes that the breakpoint for this advice is on method StatelessStorageProvider.createSpace(String storeId, String spaceId)
-
-
Constructor Summary
Constructors Constructor Description VerifySpaceCreationAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterReturning(Object returnObj, Method method, Object[] methodArgs, Object targetObj)intgetMaxRetries()intgetOrder()intgetWaitTime()voidsetMaxRetries(int maxRetries)voidsetOrder(int order)voidsetWaitTime(int waitTime)
-
-
-
Method Detail
-
afterReturning
public void afterReturning(Object returnObj, Method method, Object[] methodArgs, Object targetObj) throws Throwable
- Specified by:
afterReturningin interfaceorg.springframework.aop.AfterReturningAdvice- 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)
-
-