站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 Cache API Documentation 英文版文档

TreeCacheListener (JBoss Cache API) - JBoss 3.2.7 Cache API Documentation 英文版文档


org.jboss.cache
Interface TreeCacheListener

All Known Implementing Classes:
ConsoleListener, LRUPolicy, SharedStoreCacheLoader, TreeCacheView.MyListener

public interface TreeCacheListener

Callbacks for various events regarding TreeCache. Implementers should avoid performing long running actions, as this blocks the cache. If you have to do so, please start a new thread.

Version:
$Revision: 1.4.2.6 $
Author:
Bela Ban, Ben Wang

Method Summary
 void cacheStarted(TreeCache cache)
          Called when the cache is started.
 void cacheStopped(TreeCache cache)
          Called when the cache is stopped.
 void nodeCreated(Fqn fqn)
          Called when a node is created
 void nodeEvicted(Fqn fqn)
          Called when a node is evicted (not the same as remove()).
 void nodeLoaded(Fqn fqn)
          Called when a node is loaded into memory via the CacheLoader.
 void nodeModified(Fqn fqn)
          Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.
 void nodeRemoved(Fqn fqn)
          Called when a node is removed.
 void nodeVisited(Fqn fqn)
          Called when a node is visisted, i.e., get().
 void viewChange(org.jgroups.View new_view)
           
 

Method Detail

nodeCreated

public void nodeCreated(Fqn fqn)
Called when a node is created

Parameters:
fqn -

nodeRemoved

public void nodeRemoved(Fqn fqn)
Called when a node is removed.

Parameters:
fqn -

nodeLoaded

public void nodeLoaded(Fqn fqn)
Called when a node is loaded into memory via the CacheLoader. This is not the same as nodeCreated(Fqn).


nodeEvicted

public void nodeEvicted(Fqn fqn)
Called when a node is evicted (not the same as remove()).

Parameters:
fqn -

nodeModified

public void nodeModified(Fqn fqn)
Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.

Parameters:
fqn -

nodeVisited

public void nodeVisited(Fqn fqn)
Called when a node is visisted, i.e., get().

Parameters:
fqn -

cacheStarted

public void cacheStarted(TreeCache cache)
Called when the cache is started.

Parameters:
cache -

cacheStopped

public void cacheStopped(TreeCache cache)
Called when the cache is stopped.

Parameters:
cache -

viewChange

public void viewChange(org.jgroups.View new_view)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.