Package com.jcabi.aspects.aj
Class MethodCacher
- java.lang.Object
-
- com.jcabi.aspects.aj.MethodCacher
-
-
Constructor Summary
Constructors Constructor Description MethodCacher()
Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
cache(org.aspectj.lang.ProceedingJoinPoint point)
Call the method or fetch from cache.Object
flush(org.aspectj.lang.ProceedingJoinPoint point)
Deprecated.Since 0.7.17, and preflush() should be usedvoid
postflush(org.aspectj.lang.JoinPoint point)
Flush cache after method execution.void
preflush(org.aspectj.lang.JoinPoint point)
Flush cache.
-
-
-
Method Detail
-
cache
public Object cache(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
Call the method or fetch from cache.Try NOT to change the signature of this method, in order to keep it backward compatible.
- Parameters:
point
- Joint point- Returns:
- The result of call
- Throws:
Throwable
- If something goes wrong inside
-
flush
@Deprecated public Object flush(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
Deprecated.Since 0.7.17, and preflush() should be usedFlush cache.- Parameters:
point
- Join point- Returns:
- Value of the method
- Throws:
Throwable
- If something goes wrong inside- Since:
- 0.7.14
-
preflush
public void preflush(org.aspectj.lang.JoinPoint point)
Flush cache.Try NOT to change the signature of this method, in order to keep it backward compatible.
- Parameters:
point
- Joint point- Since:
- 0.7.14
-
postflush
public void postflush(org.aspectj.lang.JoinPoint point)
Flush cache after method execution.Try NOT to change the signature of this method, in order to keep it backward compatible.
- Parameters:
point
- Joint point- Since:
- 0.7.18
-
-