NonBlockingStore@ThreadSafe @Deprecated public interface CacheWriter<K,V> extends Lifecycle
CacheLoader.| Modifier and Type | Method and Description |
|---|---|
default CompletionStage<Void> |
bulkUpdate(org.reactivestreams.Publisher<MarshallableEntry<? extends K,? extends V>> publisher)
Deprecated.
Persist all provided entries to the store in chunks, with the size of each chunk determined by the store
implementation.
|
boolean |
delete(Object key)
Deprecated.
|
default void |
deleteBatch(Iterable<Object> keys)
Deprecated.
Remove all provided keys from the store in a single batch operation.
|
void |
init(InitializationContext ctx)
Deprecated.
Used to initialize a cache loader.
|
default boolean |
isAvailable()
Deprecated.
|
void |
write(MarshallableEntry<? extends K,? extends V> entry)
Deprecated.
Persists the entry to the storage.
|
void init(InitializationContext ctx)
PersistenceManager
when setting up cache loaders.PersistenceException - in case of an error, e.g. communicating with the external storagevoid write(MarshallableEntry<? extends K,? extends V> entry)
PersistenceException - in case of an error, e.g. communicating with the external storageMarshallableEntryboolean delete(Object key)
PersistenceException - in case of an error, e.g. communicating with the external storagedefault CompletionStage<Void> bulkUpdate(org.reactivestreams.Publisher<MarshallableEntry<? extends K,? extends V>> publisher)
write(MarshallableEntry).publisher - a Publisher of MarshallableEntry instancesNullPointerException - if the publisher is null.default void deleteBatch(Iterable<Object> keys)
delete(Object).keys - an Iterable of entry Keys to be removed from the store.NullPointerException - if keys is null.default boolean isAvailable()
Copyright © 2021 JBoss by Red Hat. All rights reserved.