Class DelegatingPersistenceManager
java.lang.Object
org.infinispan.persistence.support.DelegatingPersistenceManager
- All Implemented Interfaces:
Lifecycle
,org.infinispan.persistence.manager.PersistenceManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.infinispan.persistence.manager.PersistenceManager
-
Constructor Summary
ConstructorDescriptionDelegatingPersistenceManager
(org.infinispan.persistence.manager.PersistenceManager persistenceManager) -
Method Summary
Modifier and TypeMethodDescriptionaddSegments
(IntSet segments) addStore
(StoreConfiguration persistenceConfiguration) void
addStoreListener
(org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener listener) approximateSize
(Predicate<? super StoreConfiguration> predicate, IntSet segments) clearAllStores
(Predicate<? super StoreConfiguration> predicate) commitAllTxStores
(TxInvocationContext<AbstractCacheTransaction> txInvocationContext, Predicate<? super StoreConfiguration> predicate) deleteFromAllStores
(Object key, int segment, Predicate<? super StoreConfiguration> predicate) disableStore
(String storeType) org.infinispan.persistence.manager.PersistenceManager
<T> Set
<T> boolean
hasStore
(Predicate<StoreConfiguration> test) boolean
boolean
boolean
boolean
<K,
V> CompletionStage <MarshallableEntry<K, V>> loadFromAllStores
(Object key, boolean localInvocation, boolean includeStores) <K,
V> CompletionStage <MarshallableEntry<K, V>> loadFromAllStores
(Object key, int segment, boolean localInvocation, boolean includeStores) performBatch
(TxInvocationContext<AbstractCacheTransaction> invocationContext, TriPredicate<? super org.infinispan.commands.write.WriteCommand, Object, MVCCEntry<?, ?>> commandKeyPredicate) io.reactivex.rxjava3.core.Flowable
<MarshallableEntry<Object, Object>> prepareAllTxStores
(TxInvocationContext<AbstractCacheTransaction> txInvocationContext, Predicate<? super StoreConfiguration> predicate) <K,
V> org.reactivestreams.Publisher <MarshallableEntry<K, V>> publishEntries
(boolean fetchValue, boolean fetchMetadata) <K,
V> org.reactivestreams.Publisher <MarshallableEntry<K, V>> publishEntries
(Predicate<? super K> filter, boolean fetchValue, boolean fetchMetadata, Predicate<? super StoreConfiguration> predicate) <K,
V> org.reactivestreams.Publisher <MarshallableEntry<K, V>> publishEntries
(IntSet segments, Predicate<? super K> filter, boolean fetchValue, boolean fetchMetadata, Predicate<? super StoreConfiguration> predicate) <K> org.reactivestreams.Publisher
<K> publishKeys
(Predicate<? super K> filter, Predicate<? super StoreConfiguration> predicate) <K> org.reactivestreams.Publisher
<K> publishKeys
(IntSet segments, Predicate<? super K> filter, Predicate<? super StoreConfiguration> predicate) removeSegments
(IntSet segments) void
removeStoreListener
(org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener listener) rollbackAllTxStores
(TxInvocationContext<AbstractCacheTransaction> txInvocationContext, Predicate<? super StoreConfiguration> predicate) void
setClearOnStop
(boolean clearOnStop) size()
size
(Predicate<? super StoreConfiguration> predicate) size
(Predicate<? super StoreConfiguration> predicate, IntSet segments) void
start()
Invoked on component startvoid
stop()
Invoked on component stop<K,
V> CompletionStage <Void> writeEntries
(Iterable<MarshallableEntry<K, V>> iterable, Predicate<? super StoreConfiguration> predicate) writeMapCommand
(org.infinispan.commands.write.PutMapCommand putMapCommand, InvocationContext ctx, BiPredicate<? super org.infinispan.commands.write.PutMapCommand, Object> commandKeyPredicate) writeToAllNonTxStores
(MarshallableEntry marshalledEntry, int segment, Predicate<? super StoreConfiguration> predicate) writeToAllNonTxStores
(MarshallableEntry marshalledEntry, int segment, Predicate<? super StoreConfiguration> predicate, long flags)
-
Field Details
-
persistenceManager
protected final org.infinispan.persistence.manager.PersistenceManager persistenceManager
-
-
Constructor Details
-
DelegatingPersistenceManager
public DelegatingPersistenceManager(org.infinispan.persistence.manager.PersistenceManager persistenceManager)
-
-
Method Details
-
start
public void start()Description copied from interface:Lifecycle
Invoked on component start -
stop
public void stop()Description copied from interface:Lifecycle
Invoked on component stop -
getActual
public org.infinispan.persistence.manager.PersistenceManager getActual() -
isEnabled
public boolean isEnabled() -
hasWriter
public boolean hasWriter() -
hasStore
-
preloadPublisher
-
disableStore
-
addStore
-
addStoreListener
public void addStoreListener(org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener listener) -
removeStoreListener
public void removeStoreListener(org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener listener) -
getStores
-
getStoresAsString
-
purgeExpired
-
clearAllStores
-
deleteFromAllStores
public CompletionStage<Boolean> deleteFromAllStores(Object key, int segment, Predicate<? super StoreConfiguration> predicate) -
publishEntries
public <K,V> org.reactivestreams.Publisher<MarshallableEntry<K,V>> publishEntries(Predicate<? super K> filter, boolean fetchValue, boolean fetchMetadata, Predicate<? super StoreConfiguration> predicate) -
publishEntries
public <K,V> org.reactivestreams.Publisher<MarshallableEntry<K,V>> publishEntries(IntSet segments, Predicate<? super K> filter, boolean fetchValue, boolean fetchMetadata, Predicate<? super StoreConfiguration> predicate) -
publishKeys
public <K> org.reactivestreams.Publisher<K> publishKeys(Predicate<? super K> filter, Predicate<? super StoreConfiguration> predicate) -
publishKeys
public <K> org.reactivestreams.Publisher<K> publishKeys(IntSet segments, Predicate<? super K> filter, Predicate<? super StoreConfiguration> predicate) -
loadFromAllStores
public <K,V> CompletionStage<MarshallableEntry<K,V>> loadFromAllStores(Object key, boolean localInvocation, boolean includeStores) -
size
-
setClearOnStop
public void setClearOnStop(boolean clearOnStop) -
writeToAllNonTxStores
public CompletionStage<Void> writeToAllNonTxStores(MarshallableEntry marshalledEntry, int segment, Predicate<? super StoreConfiguration> predicate, long flags) -
prepareAllTxStores
public CompletionStage<Void> prepareAllTxStores(TxInvocationContext<AbstractCacheTransaction> txInvocationContext, Predicate<? super StoreConfiguration> predicate) throws PersistenceException - Throws:
PersistenceException
-
commitAllTxStores
public CompletionStage<Void> commitAllTxStores(TxInvocationContext<AbstractCacheTransaction> txInvocationContext, Predicate<? super StoreConfiguration> predicate) -
rollbackAllTxStores
public CompletionStage<Void> rollbackAllTxStores(TxInvocationContext<AbstractCacheTransaction> txInvocationContext, Predicate<? super StoreConfiguration> predicate) -
writeMapCommand
public CompletionStage<Long> writeMapCommand(org.infinispan.commands.write.PutMapCommand putMapCommand, InvocationContext ctx, BiPredicate<? super org.infinispan.commands.write.PutMapCommand, Object> commandKeyPredicate) -
writeEntries
public <K,V> CompletionStage<Void> writeEntries(Iterable<MarshallableEntry<K, V>> iterable, Predicate<? super StoreConfiguration> predicate) -
performBatch
public CompletionStage<Long> performBatch(TxInvocationContext<AbstractCacheTransaction> invocationContext, TriPredicate<? super org.infinispan.commands.write.WriteCommand, Object, MVCCEntry<?, ?>> commandKeyPredicate) -
isAvailable
public boolean isAvailable() -
isReadOnly
public boolean isReadOnly() -
publishEntries
public <K,V> org.reactivestreams.Publisher<MarshallableEntry<K,V>> publishEntries(boolean fetchValue, boolean fetchMetadata) -
loadFromAllStores
public <K,V> CompletionStage<MarshallableEntry<K,V>> loadFromAllStores(Object key, int segment, boolean localInvocation, boolean includeStores) -
approximateSize
public CompletionStage<Long> approximateSize(Predicate<? super StoreConfiguration> predicate, IntSet segments) -
size
-
size
-
writeToAllNonTxStores
public CompletionStage<Void> writeToAllNonTxStores(MarshallableEntry marshalledEntry, int segment, Predicate<? super StoreConfiguration> predicate) -
addSegments
-
removeSegments
-