org.jboss.cache.interceptors
Class LegacyPassivationInterceptor

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

Deprecated. will be removed along with optimistic and pessimistic locking.

@Deprecated
public class LegacyPassivationInterceptor
extends PassivationInterceptor

Passivation interceptor for optimistic and pessimistic locking

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Field Summary
 
Fields inherited from class org.jboss.cache.interceptors.PassivationInterceptor
loader
 
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor
configuration, log, trace
 
Constructor Summary
LegacyPassivationInterceptor()
          Deprecated.  
 
Method Summary
 Object visitEvictFqnCommand(InvocationContext ctx, EvictCommand command)
          Deprecated. Notifies the cache instance listeners that the evicted node is about to be passivated and stores the evicted node and its attributes back to the store using the CacheLoader.
 
Methods inherited from class org.jboss.cache.interceptors.PassivationInterceptor
dumpStatistics, getPassivations, passivate, resetStatistics, setDependencies
 
Methods inherited from class org.jboss.cache.interceptors.base.JmxStatsCommandInterceptor
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabled
 
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.jboss.cache.commands.AbstractVisitor
visitClearDataCommand, visitCollection, visitCommitCommand, visitCreateNodeCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyPassivationInterceptor

public LegacyPassivationInterceptor()
Deprecated. 
Method Detail

visitEvictFqnCommand

public Object visitEvictFqnCommand(InvocationContext ctx,
                                   EvictCommand command)
                            throws Throwable
Deprecated. 
Description copied from class: PassivationInterceptor
Notifies the cache instance listeners that the evicted node is about to be passivated and stores the evicted node and its attributes back to the store using the CacheLoader.

Specified by:
visitEvictFqnCommand in interface Visitor
Overrides:
visitEvictFqnCommand in class PassivationInterceptor
Parameters:
ctx - invocation context
command - command to visit
Returns:
response from the visit
Throws:
Throwable - in the event of problems.


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