Class AsyncCacheWriter<K,V>

java.lang.Object
org.apache.commons.jcs3.jcache.extras.writer.AsyncCacheWriter<K,V>
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<K,V>>, javax.cache.integration.CacheWriter<K,V>

public class AsyncCacheWriter<K,V> extends Object implements javax.cache.integration.CacheWriter<K,V>, Closeable, javax.cache.configuration.Factory<javax.cache.integration.CacheWriter<K,V>>
See Also:
  • Constructor Details

    • AsyncCacheWriter

      public AsyncCacheWriter(javax.cache.integration.CacheWriter<K,V> delegate, int poolSize)
  • Method Details

    • write

      public void write(javax.cache.Cache.Entry<? extends K,? extends V> entry) throws javax.cache.integration.CacheWriterException
      Specified by:
      write in interface javax.cache.integration.CacheWriter<K,V>
      Throws:
      javax.cache.integration.CacheWriterException
    • writeAll

      public void writeAll(Collection<javax.cache.Cache.Entry<? extends K,? extends V>> entries) throws javax.cache.integration.CacheWriterException
      Specified by:
      writeAll in interface javax.cache.integration.CacheWriter<K,V>
      Throws:
      javax.cache.integration.CacheWriterException
    • delete

      public void delete(Object key) throws javax.cache.integration.CacheWriterException
      Specified by:
      delete in interface javax.cache.integration.CacheWriter<K,V>
      Throws:
      javax.cache.integration.CacheWriterException
    • deleteAll

      public void deleteAll(Collection<?> keys) throws javax.cache.integration.CacheWriterException
      Specified by:
      deleteAll in interface javax.cache.integration.CacheWriter<K,V>
      Throws:
      javax.cache.integration.CacheWriterException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • create

      public javax.cache.integration.CacheWriter<K,V> create()
      Specified by:
      create in interface javax.cache.configuration.Factory<K>