Package de.caluga.morphium.cache
Class AbstractCacheSynchronizer<T extends CacheSyncListener>
- java.lang.Object
-
- de.caluga.morphium.cache.AbstractCacheSynchronizer<T>
-
- Direct Known Subclasses:
MessagingCacheSynchronizer,WatchingCacheSynchronizer
public abstract class AbstractCacheSynchronizer<T extends CacheSyncListener> extends Object
User: Stephan Bösebeck Date: 14.07.18 Time: 22:31TODO: Add documentation here
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheSynchronizer(Morphium morphium)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSyncListener(Class type, T cl)voidaddSyncListener(T cl)voidfirePostClearEvent(Class type)protected voidfirePreClearEvent(Class type)voidremoveSyncListener(Class type, T cl)voidremoveSyncListener(T cl)
-
-
-
Field Detail
-
log
protected static final org.slf4j.Logger log
-
morphium
protected final Morphium morphium
-
listeners
protected final List<T extends CacheSyncListener> listeners
-
listenerForType
protected final Hashtable<Class<?>,Vector<T extends CacheSyncListener>> listenerForType
-
-
Constructor Detail
-
AbstractCacheSynchronizer
public AbstractCacheSynchronizer(Morphium morphium)
-
-
Method Detail
-
addSyncListener
public void addSyncListener(T cl)
-
removeSyncListener
public void removeSyncListener(T cl)
-
firePreClearEvent
protected void firePreClearEvent(Class type) throws CacheSyncVetoException
- Throws:
CacheSyncVetoException
-
firePostClearEvent
public void firePostClearEvent(Class type)
-
-