Class PersistenceUtil
java.lang.Object
org.infinispan.persistence.internal.PersistenceUtil
Persistence Utility that is useful for internal classes. Normally methods that require non public classes, such as
PersistenceManager, should go in here.
- Since:
- 9.4
- Author:
- William Burns
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K> Predicate
<? super K> combinePredicate
(IntSet segments, KeyPartitioner keyPartitioner, Predicate<? super K> filter) static <K,
V> InternalCacheEntry <K, V> convert
(MarshallableEntry<K, V> loaded, InternalEntryFactory factory) static <T> T
Deprecated.static <K,
V> MarshallableEntry <K, V> loadAndCheckExpiration
(org.infinispan.persistence.manager.PersistenceManager persistenceManager, Object key, int segment, InvocationContext context) static <K,
V> InternalCacheEntry <K, V> loadAndComputeInDataContainer
(DataContainer<K, V> dataContainer, int segment, org.infinispan.persistence.manager.PersistenceManager persistenceManager, K key, InvocationContext ctx, TimeService timeService, DataContainer.ComputeAction<K, V> action) static <K,
V> InternalCacheEntry <K, V> loadAndStoreInDataContainer
(DataContainer<K, V> dataContainer, int segment, org.infinispan.persistence.manager.PersistenceManager persistenceManager, K key, InvocationContext ctx, TimeService timeService, AtomicReference<Boolean> isLoaded) static <K,
V> InternalCacheEntry <K, V> loadAndStoreInDataContainer
(DataContainer<K, V> dataContainer, org.infinispan.persistence.manager.PersistenceManager persistenceManager, K key, InvocationContext ctx, TimeService timeService, AtomicReference<Boolean> isLoaded) static <R> io.reactivex.rxjava3.core.Flowable
<R> parallelizePublisher
(IntSet segments, io.reactivex.rxjava3.core.Scheduler scheduler, IntFunction<org.reactivestreams.Publisher<R>> publisherFunction) static <K,
V> NonBlockingStore <K, V>
-
Constructor Details
-
PersistenceUtil
public PersistenceUtil()
-
-
Method Details
-
loadAndStoreInDataContainer
public static <K,V> InternalCacheEntry<K,V> loadAndStoreInDataContainer(DataContainer<K, V> dataContainer, org.infinispan.persistence.manager.PersistenceManager persistenceManager, K key, InvocationContext ctx, TimeService timeService, AtomicReference<Boolean> isLoaded) -
loadAndStoreInDataContainer
public static <K,V> InternalCacheEntry<K,V> loadAndStoreInDataContainer(DataContainer<K, V> dataContainer, int segment, org.infinispan.persistence.manager.PersistenceManager persistenceManager, K key, InvocationContext ctx, TimeService timeService, AtomicReference<Boolean> isLoaded) -
loadAndComputeInDataContainer
public static <K,V> InternalCacheEntry<K,V> loadAndComputeInDataContainer(DataContainer<K, V> dataContainer, int segment, org.infinispan.persistence.manager.PersistenceManager persistenceManager, K key, InvocationContext ctx, TimeService timeService, DataContainer.ComputeAction<K, V> action) -
loadAndCheckExpiration
public static <K,V> MarshallableEntry<K,V> loadAndCheckExpiration(org.infinispan.persistence.manager.PersistenceManager persistenceManager, Object key, int segment, InvocationContext context) -
convert
public static <K,V> InternalCacheEntry<K,V> convert(MarshallableEntry<K, V> loaded, InternalEntryFactory factory) -
combinePredicate
public static <K> Predicate<? super K> combinePredicate(IntSet segments, KeyPartitioner keyPartitioner, Predicate<? super K> filter) -
parallelizePublisher
public static <R> io.reactivex.rxjava3.core.Flowable<R> parallelizePublisher(IntSet segments, io.reactivex.rxjava3.core.Scheduler scheduler, IntFunction<org.reactivestreams.Publisher<R>> publisherFunction) -
createStoreInstance
Deprecated.This method is only public for use with prior Store classes, usestoreFromConfiguration(StoreConfiguration)
when dealing withNonBlockingStore
instances -
storeFromConfiguration
-
storeFromConfiguration(StoreConfiguration)
when dealing withNonBlockingStore
instances