org.infinispan.interceptors
Class PassivationInterceptor

java.lang.Object
  extended by org.infinispan.commands.AbstractVisitor
      extended by org.infinispan.interceptors.base.CommandInterceptor
          extended by org.infinispan.interceptors.base.JmxStatsCommandInterceptor
              extended by org.infinispan.interceptors.PassivationInterceptor
All Implemented Interfaces:
Visitor, JmxStatisticsExposer

public class PassivationInterceptor
extends JmxStatsCommandInterceptor

Writes evicted entries back to the store on the way in through the CacheStore

Since:
4.0

Field Summary
 
Fields inherited from class org.infinispan.interceptors.base.CommandInterceptor
configuration, log, trace
 
Constructor Summary
PassivationInterceptor()
           
 
Method Summary
 String getPassivations()
           
 void resetStatistics()
          Resets statistics gathered.
 void setDependencies(PassivationManager passivator, DataContainer dataContainer)
           
 Object visitEvictCommand(InvocationContext ctx, EvictCommand command)
           
 
Methods inherited from class org.infinispan.interceptors.base.JmxStatsCommandInterceptor
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabled
 
Methods inherited from class org.infinispan.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.infinispan.commands.AbstractVisitor
visitClearCommand, visitCollection, visitCommitCommand, visitEntrySetCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitValuesCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassivationInterceptor

public PassivationInterceptor()
Method Detail

setDependencies

public void setDependencies(PassivationManager passivator,
                            DataContainer dataContainer)

visitEvictCommand

public Object visitEvictCommand(InvocationContext ctx,
                                EvictCommand command)
                         throws Throwable
Specified by:
visitEvictCommand in interface Visitor
Overrides:
visitEvictCommand in class AbstractVisitor
Throws:
Throwable

resetStatistics

public void resetStatistics()
Description copied from class: JmxStatsCommandInterceptor
Resets statistics gathered. Is a no-op, and should be overridden if it is to be meaningful.

Specified by:
resetStatistics in interface JmxStatisticsExposer
Overrides:
resetStatistics in class JmxStatsCommandInterceptor

getPassivations

public String getPassivations()

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.