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 Summary
ConstructorDescriptionAsyncCacheWriter
(javax.cache.integration.CacheWriter<K, V> delegate, int poolSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
create()
void
void
deleteAll
(Collection<?> keys) void
void
writeAll
(Collection<javax.cache.Cache.Entry<? extends K, ? extends V>> entries)
-
Constructor Details
-
AsyncCacheWriter
-
-
Method Details
-
write
-
writeAll
public void writeAll(Collection<javax.cache.Cache.Entry<? extends K, ? extends V>> entries) throws javax.cache.integration.CacheWriterException -
delete
-
deleteAll
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
create
- Specified by:
create
in interfacejavax.cache.configuration.Factory<K>
-