Package ir.msob.jima.lock.service
Class LockAspect
java.lang.Object
ir.msob.jima.lock.service.LockAspect
AOP Aspect for locking functionality around annotated methods.
This aspect acquires a lock based on a provided key expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K extends Serializable>
ObjectprocessWithLock(org.aspectj.lang.ProceedingJoinPoint joinPoint) Process the method execution with lock acquisition based on annotation.
-
Constructor Details
-
LockAspect
public LockAspect()
-
-
Method Details
-
processWithLock
public <K extends Serializable> Object processWithLock(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable Process the method execution with lock acquisition based on annotation.- Parameters:
joinPoint- ProceedingJoinPoint for the annotated method- Returns:
- the result of the annotated method execution
- Throws:
Throwable- if an error occurs during method execution
-