org.jboss.cache.interceptors
Class CacheLoaderInterceptor
java.lang.Object
|
+--org.jboss.cache.interceptors.Interceptor
|
+--org.jboss.cache.interceptors.CacheLoaderInterceptor
- Direct Known Subclasses:
- ActivationInterceptor
- public class CacheLoaderInterceptor
- extends Interceptor
Loads nodes that don't exist at the time of the call into memory from the CacheLoader
- Version:
- $Id: CacheLoaderInterceptor.java,v 1.10.12.1 2006/02/07 18:17:57 bstansberry Exp $
- Author:
- Bela Ban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loader
protected CacheLoader loader
CacheLoaderInterceptor
public CacheLoaderInterceptor()
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
- Makes sure a node is loaded into memory before a call executes (no-op if node is already loaded). If attributes
of a node are to be accessed by the method, the attributes are also loaded.
- Overrides:
invoke
in class Interceptor
- Parameters:
m
-
- Returns:
-
- Throws:
java.lang.Throwable
lock
protected void lock(Fqn fqn,
int lock_type,
boolean recursive)
throws java.lang.Throwable
java.lang.Throwable
getNode
protected DataNode getNode(Fqn fqn,
boolean load,
boolean willAttrsBeLoaded)
loadAttributesFromCacheLoader
protected void loadAttributesFromCacheLoader(DataNode n)
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.