org.jopendocument.util.cache
Class CacheWatcher<K,D>

java.lang.Object
  extended by org.jopendocument.util.cache.CacheWatcher<K,D>
Type Parameters:
K - cache key type.
D - source data type, eg SQLTable.

public abstract class CacheWatcher<K,D>
extends Object

A watcher invalidates cache results when its data is modified.


Constructor Summary
protected CacheWatcher(ICache<K,?,D> c, D data)
           
 
Method Summary
protected  void clearCache()
           
 void die()
           
protected  void dying()
           
 D getData()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheWatcher

protected CacheWatcher(ICache<K,?,D> c,
                       D data)
Method Detail

getData

public final D getData()

die

public final void die()

dying

protected void dying()

clearCache

protected final void clearCache()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 jOpenDocument All Rights Reserved.