com.googlecode.ehcache.annotations
Class DefaultTriggersRemoveInterceptor
java.lang.Object
com.googlecode.ehcache.annotations.DefaultTriggersRemoveInterceptor
- All Implemented Interfaces:
- TriggersRemoveInterceptor
public class DefaultTriggersRemoveInterceptor
- extends java.lang.Object
- implements TriggersRemoveInterceptor
Default interceptor that always removes values.
- Version:
- $Revision: 656 $
- Author:
- Eric Dalquist
|
Method Summary |
boolean |
preInvokeTriggersRemove(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation,
java.io.Serializable key)
Called before the element is removed from the cache |
boolean |
preInvokeTriggersRemoveAll(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation)
Called before the elements are removed from the cache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final DefaultTriggersRemoveInterceptor INSTANCE
DefaultTriggersRemoveInterceptor
public DefaultTriggersRemoveInterceptor()
preInvokeTriggersRemove
public boolean preInvokeTriggersRemove(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation,
java.io.Serializable key)
- Description copied from interface:
TriggersRemoveInterceptor
- Called before the element is removed from the cache
- Specified by:
preInvokeTriggersRemove in interface TriggersRemoveInterceptor
- Parameters:
cache - The cache used for this invocationmethodInvocation - The method invocation that has been interceptedkey - The generated cache key
- Returns:
- true if the element should be removed, false if the remove should be skipped.
preInvokeTriggersRemoveAll
public boolean preInvokeTriggersRemoveAll(net.sf.ehcache.Ehcache cache,
org.aopalliance.intercept.MethodInvocation methodInvocation)
- Description copied from interface:
TriggersRemoveInterceptor
- Called before the elements are removed from the cache
- Specified by:
preInvokeTriggersRemoveAll in interface TriggersRemoveInterceptor
- Parameters:
cache - The cache used for this invocationmethodInvocation - The method invocation that has been intercepted
- Returns:
- true if the elements should be removed, false if the remove should be skipped.
Copyright © 2011. All Rights Reserved.