public class SerializableCacheManager<U,A,C,G> extends Object implements CacheManager
Sets up a CacheManager for use with a definitive caching strategy.
Describes all of the supported CacheType at once. In case all are not required,
simply parameterize the non required type to Object and you are good to go.
Please be advised that the CacheManager will then not entertain the type identified
plainly as Object. Passing null argument to the non-required type is also not
necessary as it will not be considered at all.
SerializableCacheManagementWorker| Constructor and Description |
|---|
SerializableCacheManager()
Constructs an instance of cache manager as
SerializableCacheManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
setAuthCache(SerializableAuthCache<A> authCache)
Registers the auth cache with the worker.
|
void |
setCsrfCache(SerializableCsrfCache<C> csrfCache)
Registers the csrf cache with the worker.
|
void |
setGenericCache(SerializableGenericCache<G> genericCache)
Registers the generic cache with the worker.
|
void |
setUserCache(SerializableUserCache<U> userCache)
Registers the user cache with the worker.
|
public SerializableCacheManager()
SerializableCacheManager. This
implicitly registers the cache management executorpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void setUserCache(SerializableUserCache<U> userCache)
Registers the user cache with the worker.
userCache - the user cache to be managedpublic void setAuthCache(SerializableAuthCache<A> authCache)
Registers the auth cache with the worker.
authCache - the auth cache to be managedpublic void setCsrfCache(SerializableCsrfCache<C> csrfCache)
Registers the csrf cache with the worker.
csrfCache - the csrf cache to be managedpublic void setGenericCache(SerializableGenericCache<G> genericCache)
Registers the generic cache with the worker.
genericCache - the generic cache to be managedCopyright © 2016. All rights reserved.