org.jboss.cache.interceptors
Class EvictionInterceptor
java.lang.Object
org.jboss.cache.interceptors.Interceptor
org.jboss.cache.interceptors.EvictionInterceptor
- All Implemented Interfaces:
- InterceptorMBean
public class EvictionInterceptor
- extends Interceptor
Eviction Interceptor.
This interceptor is used to handle eviction events.
- Version:
- $Revision: 1.16 $
- Author:
- Daniel Huang
Methods inherited from class org.jboss.cache.interceptors.Interceptor |
dumpStatistics, getLast, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, setLast, setNext, setStatisticsEnabled, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
regionManager
protected RegionManager regionManager
evictionMethodHandlers
protected java.util.Map<java.lang.Integer,EvictionInterceptor.EvictionMethodHandler> evictionMethodHandlers
EvictionInterceptor
public EvictionInterceptor()
setCache
public void setCache(CacheSPI cache)
- Overrides:
setCache
in class Interceptor
invoke
public java.lang.Object invoke(InvocationContext ctx)
throws java.lang.Throwable
- Overrides:
invoke
in class Interceptor
- Throws:
java.lang.Throwable
updateNode
protected void updateNode(MethodCall m,
java.lang.Object retVal)
extractEvent
protected EvictedEventNode extractEvent(MethodCall m,
java.lang.Object retVal)
canIgnoreEvent
protected boolean canIgnoreEvent(Fqn fqn,
NodeEventType type)
doEventUpdatesOnRegionManager
protected void doEventUpdatesOnRegionManager(EvictedEventNode event)