Class HotRodStore<K,V>
java.lang.Object
org.jboss.as.clustering.infinispan.persistence.hotrod.HotRodStore<K,V>
- All Implemented Interfaces:
org.infinispan.persistence.spi.NonBlockingStore<K,V>
public class HotRodStore<K,V>
extends Object
implements org.infinispan.persistence.spi.NonBlockingStore<K,V>
Variation of
RemoteStore configured with a started container-managed RemoteCacheContainer instance.
Remote caches are auto-created on the remote server if supported by the protocol.
Supports segmentation by using a separate remote cache per segment.- Author:
- Radoslav Husar, Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.persistence.spi.NonBlockingStore
org.infinispan.persistence.spi.NonBlockingStore.Characteristic, org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Type extends Object> -
Field Summary
Fields inherited from interface org.infinispan.persistence.spi.NonBlockingStore
SIZE_UNAVAILABLE_FUTURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSegments(org.infinispan.commons.util.IntSet segments) batch(int publisherCount, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Object>> removePublisher, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<org.infinispan.persistence.spi.MarshallableEntry<K, V>>> writePublisher) Set<org.infinispan.persistence.spi.NonBlockingStore.Characteristic>clear()containsKey(int segment, Object key) CompletionStage<org.infinispan.persistence.spi.MarshallableEntry<K,V>> publishEntries(org.infinispan.commons.util.IntSet segments, Predicate<? super K> filter, boolean includeValues) io.reactivex.rxjava3.core.Flowable<K>publishKeys(org.infinispan.commons.util.IntSet segments, Predicate<? super K> filter) removeSegments(org.infinispan.commons.util.IntSet segments) size(org.infinispan.commons.util.IntSet segments) start(org.infinispan.persistence.spi.InitializationContext context) stop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.persistence.spi.NonBlockingStore
approximateSize, commit, destroy, ignoreCommandWithFlags, prepareWithModifications, rollback
-
Constructor Details
-
HotRodStore
public HotRodStore()
-
-
Method Details
-
start
-
stop
-
characteristics
-
load
public CompletionStage<org.infinispan.persistence.spi.MarshallableEntry<K,V>> load(int segment, Object key) -
write
public CompletionStage<Void> write(int segment, org.infinispan.persistence.spi.MarshallableEntry<? extends K, ? extends V> entry) -
delete
-
batch
public CompletionStage<Void> batch(int publisherCount, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<Object>> removePublisher, org.reactivestreams.Publisher<org.infinispan.persistence.spi.NonBlockingStore.SegmentedPublisher<org.infinispan.persistence.spi.MarshallableEntry<K, V>>> writePublisher) -
publishKeys
-
publishEntries
-
clear
-
containsKey
-
isAvailable
-
size
-
addSegments
-
removeSegments
-
purgeExpired
-