Package org.duracloud.durastore.aop
Class VerifySpaceDeletionAdvice
java.lang.Object
org.duracloud.durastore.aop.VerifySpaceDeletionAdvice
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.springframework.aop.AfterAdvice,org.springframework.aop.AfterReturningAdvice,org.springframework.core.Ordered
public class VerifySpaceDeletionAdvice
extends Object
implements org.springframework.aop.AfterReturningAdvice, org.springframework.core.Ordered
Verifies that when a space is deleted it is no longer available
for access prior to returning.
Assumes that the breakpoint for this advice is on method
StatelessStorageProvider.deleteSpace(String storeId, spaceId)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterReturning(Object returnObj, Method method, Object[] methodArgs, Object targetObj) intintgetOrder()intvoidsetMaxRetries(int maxRetries) voidsetOrder(int order) voidsetWaitTime(int waitTime)
-
Constructor Details
-
VerifySpaceDeletionAdvice
public VerifySpaceDeletionAdvice()
-
-
Method Details
-
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)
-