public interface CacheController
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleCallback(CacheLifecycleCallback callback)
registers a lifecycle callback.
|
void |
clearCache(CacheRegion region)
Clears cache
|
<T> T |
get(CacheKey key)
Gets value stored in the cache.
|
java.util.Collection<CacheRegion> |
getRegions()
Returns all regions used in this controller.
|
<T> T |
getWithLoader(CacheKey key,
CacheValueLoader<T> loader)
Gets stored value from cache.
|
void |
invalidate(CacheKey key)
Performs key invalidation from cache.
|
void |
registerTenant(java.lang.String tenantId)
Setups registry for tenant
|
void |
remove(CacheKey key)
Removes key
|
void |
removeLifecycleCallback(CacheLifecycleCallback callback)
Removes a registered lifecycle callback.
|
void |
setStatsEnabled(boolean enabled)
Allows to enable or disable collecting of statistics for all regions in one step.
|
<T> T getWithLoader(CacheKey key, CacheValueLoader<T> loader) throws CacheValueLoadException
CacheValueLoadException<T> T get(CacheKey key)
void invalidate(CacheKey key)
java.util.Collection<CacheRegion> getRegions()
void remove(CacheKey key)
void clearCache(CacheRegion region)
void addLifecycleCallback(CacheLifecycleCallback callback)
void removeLifecycleCallback(CacheLifecycleCallback callback)
void setStatsEnabled(boolean enabled)
void registerTenant(java.lang.String tenantId)
Copyright © 2018 SAP SE. All Rights Reserved.