Class CopyCacheProxy<K,​V>

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Iterable<javax.cache.Cache.Entry<K,​V>>, javax.cache.Cache<K,​V>

    public class CopyCacheProxy<K,​V>
    extends TransformingCacheProxy<K,​V,​K,​V>
    Cache proxy that expects the transformers keep the type but copy the objects. Copying could be done e.g. cloning and serialization or can be skipped in case of immutable types.
    Author:
    Jens Wilke
    • Method Detail

      • getConfiguration

        public <C extends javax.cache.configuration.Configuration<K,​V>> C getConfiguration​(Class<C> clazz)
        Delegates to the wrapped cache. Wrap configuration and return true on store by value
      • registerCacheEntryListener

        public void registerCacheEntryListener​(javax.cache.configuration.CacheEntryListenerConfiguration<K,​V> cacheEntryListenerConfiguration)
        Delegates to wrapped cache.
      • deregisterCacheEntryListener

        public void deregisterCacheEntryListener​(javax.cache.configuration.CacheEntryListenerConfiguration<K,​V> cacheEntryListenerConfiguration)
        Delegates to wrapped cache.