org.jboss.shotoku.cache
Class ShotokuResourceWatcherSplitDescriptor<K,T>
java.lang.Object
org.jboss.shotoku.cache.ShotokuCacheItem<K,T>
org.jboss.shotoku.cache.ShotokuResourceWatcher<K,T>
org.jboss.shotoku.cache.ShotokuResourceWatcherSplitDescriptor<K,T>
public abstract class ShotokuResourceWatcherSplitDescriptor<K,T>
- extends ShotokuResourceWatcher<K,T>
Same as ShotokuResourceWatcher but the update method has a different
signature (the information about changes to resources is split into
three sets).
- Author:
- Adam Warski (adamw@aster.pl)
|
Method Summary |
protected void |
update(K key,
T currentObject,
java.util.Map<java.lang.String,ChangeType> changes)
Same as ShotokuCacheItem.update(String, T), but is called only when
some of the watched resources change, not on each call of update by
the service. |
protected abstract void |
update(K key,
T currentObject,
java.util.Set<java.lang.String> modified,
java.util.Set<java.lang.String> added,
java.util.Set<java.lang.String> deleted)
Same as ShotokuCacheItem.update(String, T), but is called only when
some of the watched resources change, not on each call of update by
the service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShotokuResourceWatcherSplitDescriptor
public ShotokuResourceWatcherSplitDescriptor()
update
protected abstract void update(K key,
T currentObject,
java.util.Set<java.lang.String> modified,
java.util.Set<java.lang.String> added,
java.util.Set<java.lang.String> deleted)
- Same as ShotokuCacheItem.update(String, T), but is called only when
some of the watched resources change, not on each call of update by
the service. If the object in the cache should be changed, the
implementing method must call put(key, newObject).
- Parameters:
key - Key of the object to update.currentObject - Current value held in the cache.modified - Set of paths that changed since the last update.added - Set of paths that were added since the last update.deleted - Set of paths that were deleted the last update.
update
protected void update(K key,
T currentObject,
java.util.Map<java.lang.String,ChangeType> changes)
- Description copied from class:
ShotokuResourceWatcher
- Same as ShotokuCacheItem.update(String, T), but is called only when
some of the watched resources change, not on each call of update by
the service. If the object in the cache should be changed, the
implementing method must call put(key, newObject).
- Specified by:
update in class ShotokuResourceWatcher<K,T>
- Parameters:
key - Key of the object to update.currentObject - Current value held in the cache.changes - A map of descripiton of changes that occured since last
update.
Copyright © -2006 . All Rights Reserved.