org.jboss.cache.interceptors
Class EvictionInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by 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

Nested Class Summary
protected static interface EvictionInterceptor.EvictionMethodHandler
           
protected  class EvictionInterceptor.GetKeyEvictionMethodHandler
           
protected  class EvictionInterceptor.GetNodeEvictionMethodHandler
           
protected  class EvictionInterceptor.PartialEvictionEvictionMethodHandler
           
protected  class EvictionInterceptor.PutDataEraseEvictionMethodHandler
           
protected  class EvictionInterceptor.PutDataEvictionMethodHandler
           
protected  class EvictionInterceptor.PutKeyEvictionMethodHandler
           
protected  class EvictionInterceptor.RemoveKeyEvictionMethodHandler
           
protected  class EvictionInterceptor.RemoveNodeEvictionMethodHandler
           
 
Field Summary
protected  java.util.Map<java.lang.Integer,EvictionInterceptor.EvictionMethodHandler> evictionMethodHandlers
           
protected  RegionManager regionManager
           
 
Fields inherited from class org.jboss.cache.interceptors.Interceptor
cache, configuration, last, next
 
Constructor Summary
EvictionInterceptor()
           
 
Method Summary
protected  boolean canIgnoreEvent(Fqn fqn, NodeEventType type)
           
protected  void doEventUpdatesOnRegionManager(EvictedEventNode event)
           
protected  EvictedEventNode extractEvent(MethodCall m, java.lang.Object retVal)
           
 java.lang.Object invoke(InvocationContext ctx)
           
 void setCache(CacheSPI cache)
           
protected  void updateNode(MethodCall m, java.lang.Object retVal)
           
 
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
 

Field Detail

regionManager

protected RegionManager regionManager

evictionMethodHandlers

protected java.util.Map<java.lang.Integer,EvictionInterceptor.EvictionMethodHandler> evictionMethodHandlers
Constructor Detail

EvictionInterceptor

public EvictionInterceptor()
Method Detail

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)