public final class MethodCacher extends Object
It is an AspectJ aspect and you are not supposed to use it directly. It
is instantiated by AspectJ runtime framework when your code is annotated
with Cacheable
annotation.
The class is thread-safe.
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodCacher.Key
Key of a callable target.
|
protected static class |
MethodCacher.Tunnel
Mutable caching/calling tunnel, it is thread-safe.
|
Constructor and Description |
---|
MethodCacher()
Public ctor.
|
Modifier and Type | Method and 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 used
|
void |
postflush(org.aspectj.lang.JoinPoint point)
Flush cache after method execution.
|
void |
preflush(org.aspectj.lang.JoinPoint point)
Flush cache.
|
public Object cache(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
Try NOT to change the signature of this method, in order to keep it backward compatible.
point
- Joint pointThrowable
- If something goes wrong inside@Deprecated public Object flush(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
point
- Join pointThrowable
- If something goes wrong insidepublic void preflush(org.aspectj.lang.JoinPoint point)
Try NOT to change the signature of this method, in order to keep it backward compatible.
point
- Joint pointpublic void postflush(org.aspectj.lang.JoinPoint point)
Try NOT to change the signature of this method, in order to keep it backward compatible.
point
- Joint pointCopyright © 2012–2017 jcabi.com. All rights reserved.