public interface CacheHandler
| Modifier and Type | Method and Description |
|---|---|
<K extends java.io.Serializable,V> |
getCache(org.cyclos.impl.utils.cache.CacheType<K,V> type)
Returns the
Cache implementation for the given type |
<K extends java.io.Serializable,V> |
getCacheIfInitialized(org.cyclos.impl.utils.cache.CacheType<K,V> type)
Returns the
Cache implementation for the given type if it has already been initialized, or null otherwise |
<K extends java.io.Serializable,V> |
scheduleClear(org.cyclos.impl.utils.cache.CacheType<K,V> type)
Schedules a cache clear to be executed after the current transaction has been committed (important to prevent the
cache from being reloaded by
another thread before the current transaction is committed, populating the cache with a stale value)
|
<K extends java.io.Serializable,V> |
scheduleEvict(org.cyclos.impl.utils.cache.CacheType<K,V> type,
java.util.Collection<K> keys)
Schedules the eviction of the given cache keys after the current transaction has been committed (important to
prevent the cache from being
reloaded by another thread before the current transaction is committed, populating the cache with a stale value)
|
<K extends java.io.Serializable,V> |
scheduleEvict(org.cyclos.impl.utils.cache.CacheType<K,V> type,
K key)
Schedules the eviction of an specific cache key after the current transaction has been committed (important to
prevent the cache from being
reloaded by another thread before the current transaction is committed, populating the cache with a stale value)
|
<K extends java.io.Serializable,V> org.cyclos.impl.utils.cache.Cache<K,V> getCache(org.cyclos.impl.utils.cache.CacheType<K,V> type)
Cache implementation for the given type<K extends java.io.Serializable,V> org.cyclos.impl.utils.cache.Cache<K,V> getCacheIfInitialized(org.cyclos.impl.utils.cache.CacheType<K,V> type)
Cache implementation for the given type if it has already been initialized, or null otherwise<K extends java.io.Serializable,V> void scheduleClear(org.cyclos.impl.utils.cache.CacheType<K,V> type)
<K extends java.io.Serializable,V> void scheduleEvict(org.cyclos.impl.utils.cache.CacheType<K,V> type,
java.util.Collection<K> keys)
<K extends java.io.Serializable,V> void scheduleEvict(org.cyclos.impl.utils.cache.CacheType<K,V> type,
K key)