Class RemoteCacheStore<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.persistence.remote.RemoteCacheStore<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
org.infinispan.persistence.spi.NonBlockingStore<K,V>
public class RemoteCacheStore<K,V>
extends Object
implements org.infinispan.persistence.spi.NonBlockingStore<K,V>
Alternative to org.infinispan.persistence.remote.RemoteStore configured with a provided
RemoteCacheContainer instance.
Other differences include:
- Remote caches are auto-created on the remote server.
- Supports
NonBlockingStore.Characteristic.TRANSACTIONAL - Supports
NonBlockingStore.Characteristic.SEGMENTABLEby using a remote cache per segment allowing for independent segmentation between client and server.
- Author:
- 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> -
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()commit(jakarta.transaction.Transaction transaction) containsKey(int segment, Object key) CompletionStage<org.infinispan.persistence.spi.MarshallableEntry<K, V>> prepareWithModifications(jakarta.transaction.Transaction transaction, 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) 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) rollback(jakarta.transaction.Transaction transaction) 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, destroy, ignoreCommandWithFlags
-
Constructor Details
-
RemoteCacheStore
public RemoteCacheStore()
-
-
Method Details
-
characteristics
-
start
-
stop
-
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
-
prepareWithModifications
public CompletionStage<Void> prepareWithModifications(jakarta.transaction.Transaction transaction, 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) -
commit
-
rollback
-