Class JCacheWriterAdapter<K,​V>

  • All Implemented Interfaces:
    org.infinispan.commons.api.Lifecycle, org.infinispan.persistence.spi.CacheWriter

    public class JCacheWriterAdapter<K,​V>
    extends Object
    implements org.infinispan.persistence.spi.CacheWriter
    • Constructor Detail

      • JCacheWriterAdapter

        public JCacheWriterAdapter()
    • Method Detail

      • setCacheWriter

        public void setCacheWriter​(javax.cache.integration.CacheWriter<? super K,​? super V> delegate)
      • init

        public void init​(org.infinispan.persistence.spi.InitializationContext ctx)
        Specified by:
        init in interface org.infinispan.persistence.spi.CacheWriter<K,​V>
      • write

        public void write​(org.infinispan.marshall.core.MarshalledEntry entry)
        Specified by:
        write in interface org.infinispan.persistence.spi.CacheWriter<K,​V>
      • delete

        public boolean delete​(Object key)
        Specified by:
        delete in interface org.infinispan.persistence.spi.CacheWriter<K,​V>
      • start

        public void start()
        Specified by:
        start in interface org.infinispan.commons.api.Lifecycle
      • stop

        public void stop()
        Specified by:
        stop in interface org.infinispan.commons.api.Lifecycle