Class IdempotentAspect
java.lang.Object
com.trendyol.jdempotent.core.aspect.IdempotentAspect
public class IdempotentAspect extends Object
An aspect that used along with the @IdempotentResource annotation
-
Constructor Summary
Constructors Constructor Description IdempotentAspect()IdempotentAspect(ErrorConditionalCallback errorCallback)IdempotentAspect(ErrorConditionalCallback errorCallback, DefaultKeyGenerator keyGenerator)IdempotentAspect(IdempotentRepository idempotentRepository)IdempotentAspect(IdempotentRepository idempotentRepository, ErrorConditionalCallback errorCallback)IdempotentAspect(IdempotentRepository idempotentRepository, ErrorConditionalCallback errorCallback, DefaultKeyGenerator keyGenerator)IdempotentAspect(IdempotentRepository idempotentRepository, DefaultKeyGenerator keyGenerator) -
Method Summary
Modifier and Type Method Description Objectexecute(org.aspectj.lang.ProceedingJoinPoint pjp)An advice to make sure it returns at the same time for all subsequent callsIdempotentRepositorygetIdempotentRepository()voidsetIdempotentRepository(IdempotentRepository idempotentRepository)Sets the cache implementation
-
Constructor Details
-
IdempotentAspect
public IdempotentAspect() -
IdempotentAspect
-
IdempotentAspect
-
IdempotentAspect
public IdempotentAspect(IdempotentRepository idempotentRepository, ErrorConditionalCallback errorCallback) -
IdempotentAspect
-
IdempotentAspect
public IdempotentAspect(IdempotentRepository idempotentRepository, DefaultKeyGenerator keyGenerator) -
IdempotentAspect
public IdempotentAspect(IdempotentRepository idempotentRepository, ErrorConditionalCallback errorCallback, DefaultKeyGenerator keyGenerator)
-
-
Method Details
-
execute
An advice to make sure it returns at the same time for all subsequent calls- Parameters:
pjp-- Returns:
- Throws:
Throwable
-
setIdempotentRepository
Sets the cache implementation- Parameters:
idempotentRepository-
-
getIdempotentRepository
- Returns:
-