org.jboss.cache.interceptors
Class PassivationInterceptor
java.lang.Object
|
+--org.jboss.cache.interceptors.Interceptor
|
+--org.jboss.cache.interceptors.PassivationInterceptor
- public class PassivationInterceptor
- extends Interceptor
Writes evicted nodes back to the store on the way in through the CacheLoader,
either before each method call (no TXs), or at TX commit.
- Version:
- $Id: PassivationInterceptor.java,v 1.11.12.1 2006/02/07 18:17:57 bstansberry Exp $
- Author:
- {Hany Mesha}
Method Summary |
java.lang.Object |
invoke(org.jgroups.blocks.MethodCall m)
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. |
void |
setCache(TreeCache cache)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loader
protected CacheLoader loader
PassivationInterceptor
public PassivationInterceptor()
setCache
public void setCache(TreeCache cache)
- Overrides:
setCache
in class Interceptor
invoke
public java.lang.Object invoke(org.jgroups.blocks.MethodCall m)
throws java.lang.Throwable
- 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.
In case of a transaction, register for TX completion (2PC) and at TX commit,
The evicted node write made under the given TX to the CacheLoader.
- Overrides:
invoke
in class Interceptor
- Parameters:
m
-
- Returns:
-
- Throws:
java.lang.Throwable
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.