public class HotRodStore<K,V> extends Object implements org.infinispan.persistence.spi.SegmentedAdvancedLoadWriteStore<K,V>, io.reactivex.functions.Function<org.infinispan.commons.util.CloseableIterator<byte[]>,org.reactivestreams.Publisher<K>>, io.reactivex.functions.Consumer<K>
AdvancedLoadWriteStore configured with a started container-managed RemoteCacheContainer
instance. Does not perform wrapping entries in Infinispan internal objects, this stores "raw" values.org.infinispan.persistence.spi.AdvancedCacheLoader.CacheLoaderTask<K,V>, org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext| Constructor and Description |
|---|
HotRodStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(K key) |
org.reactivestreams.Publisher<K> |
apply(org.infinispan.commons.util.CloseableIterator<byte[]> iterator) |
CompletionStage<Void> |
bulkUpdate(org.reactivestreams.Publisher<org.infinispan.persistence.spi.MarshallableEntry<? extends K,? extends V>> marshalledEntries) |
void |
clear() |
void |
clear(org.infinispan.commons.util.IntSet segments) |
boolean |
contains(Object key) |
boolean |
delete(Object key) |
org.reactivestreams.Publisher<org.infinispan.persistence.spi.MarshallableEntry<K,V>> |
entryPublisher(org.infinispan.commons.util.IntSet segments,
Predicate<? super K> filter,
boolean fetchValue,
boolean fetchMetadata) |
void |
init(org.infinispan.persistence.spi.InitializationContext ctx) |
boolean |
isAvailable() |
org.infinispan.persistence.spi.MarshallableEntry<K,V> |
loadEntry(Object key) |
io.reactivex.Flowable<K> |
publishKeys(org.infinispan.commons.util.IntSet segments,
Predicate<? super K> filter) |
io.reactivex.Flowable<K> |
publishKeys(Predicate<? super K> filter) |
void |
purge(Executor threadPool,
org.infinispan.persistence.spi.AdvancedCacheWriter.PurgeListener<? super K> listener) |
int |
size() |
int |
size(org.infinispan.commons.util.IntSet segments) |
void |
start() |
void |
stop() |
void |
write(org.infinispan.persistence.spi.MarshallableEntry<? extends K,? extends V> entry) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSegments, contains, delete, get, load, publishEntries, purge, removeSegments, write, writepublic void init(org.infinispan.persistence.spi.InitializationContext ctx)
public void start()
start in interface org.infinispan.commons.api.Lifecyclepublic void stop()
stop in interface org.infinispan.commons.api.Lifecyclepublic org.infinispan.persistence.spi.MarshallableEntry<K,V> loadEntry(Object key) throws org.infinispan.persistence.spi.PersistenceException
public void write(org.infinispan.persistence.spi.MarshallableEntry<? extends K,? extends V> entry)
public CompletionStage<Void> bulkUpdate(org.reactivestreams.Publisher<org.infinispan.persistence.spi.MarshallableEntry<? extends K,? extends V>> marshalledEntries)
public boolean contains(Object key)
public boolean delete(Object key)
public io.reactivex.Flowable<K> publishKeys(org.infinispan.commons.util.IntSet segments, Predicate<? super K> filter)
public org.reactivestreams.Publisher<K> apply(org.infinispan.commons.util.CloseableIterator<byte[]> iterator)
apply in interface io.reactivex.functions.Function<org.infinispan.commons.util.CloseableIterator<byte[]>,org.reactivestreams.Publisher<K>>public org.reactivestreams.Publisher<org.infinispan.persistence.spi.MarshallableEntry<K,V>> entryPublisher(org.infinispan.commons.util.IntSet segments, Predicate<? super K> filter, boolean fetchValue, boolean fetchMetadata)
public int size()
public void clear()
public void purge(Executor threadPool, org.infinispan.persistence.spi.AdvancedCacheWriter.PurgeListener<? super K> listener)
public boolean isAvailable()
public int size(org.infinispan.commons.util.IntSet segments)
public void clear(org.infinispan.commons.util.IntSet segments)
Copyright © 2020 JBoss by Red Hat. All rights reserved.