Class EhcacheProxy
java.lang.Object
com.broadleafcommerce.common.extension.cache.ehcache.EhcacheProxy
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<javax.cache.Cache.Entry<Object,,Object>> javax.cache.Cache<Object,Object>
A proxy implementation of the
Cache interface that wraps a delegate cache and provides
additional behavior for deep cloning of objects.
This class is designed to ensure that objects entering or exiting the cache go through a deep
cloning process using the provided Cloner implementation. This prevents shared references
and unintended side effects caused by mutable objects.
All cache operations are delegated to the underlying cache while ensuring cloning is performed where necessary.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()booleancontainsKey(Object key) voidderegisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<Object, Object> cacheEntryListenerConfiguration) getAndRemove(Object key) getAndReplace(Object key, Object value) javax.cache.CacheManagergetConfiguration(Class<C> clazz) getName()<T> Tinvoke(Object key, javax.cache.processor.EntryProcessor<Object, Object, T> entryProcessor, Object... arguments) invokeAll(Set<?> keys, javax.cache.processor.EntryProcessor<Object, Object, T> entryProcessor, Object... arguments) booleanisClosed()iterator()voidloadAll(Set<?> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener completionListener) voidvoidbooleanputIfAbsent(Object key, Object value) voidregisterCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<Object, Object> cacheEntryListenerConfiguration) booleanbooleanvoidvoidbooleanboolean<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EhcacheProxy
-
-
Method Details
-
get
-
getAll
-
containsKey
-
loadAll
public void loadAll(Set<?> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener completionListener) -
put
-
getAndPut
-
putAll
-
putIfAbsent
-
remove
-
remove
-
getAndRemove
-
replace
-
replace
-
getAndReplace
-
removeAll
-
removeAll
public void removeAll() -
clear
public void clear() -
getConfiguration
-
invoke
-
invokeAll
-
getName
-
getCacheManager
public javax.cache.CacheManager getCacheManager() -
close
public void close() -
isClosed
public boolean isClosed() -
unwrap
-
registerCacheEntryListener
-
deregisterCacheEntryListener
-
iterator
-