Package org.infinispan.stream.impl.local
Class PersistenceEntryStreamSupplier<K,V>
java.lang.Object
org.infinispan.stream.impl.local.PersistenceEntryStreamSupplier<K,V>
- All Implemented Interfaces:
AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>, Stream<CacheEntry<K, V>>>
public class PersistenceEntryStreamSupplier<K,V>
extends Object
implements AbstractLocalCacheStream.StreamSupplier<CacheEntry<K,V>,Stream<CacheEntry<K,V>>>
StreamSupplier that allows for creating streams where they utilize the
PersistenceManager to publish entries
using segments if possible.- Since:
- 9.4
- Author:
- wburns
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceEntryStreamSupplier(Cache<K, V> cache, InternalEntryFactory iceFactory, ToIntFunction<Object> toIntFunction, CacheStream<CacheEntry<K, V>> inMemoryStream, PersistenceManager persistenceManager) -
Method Summary
Modifier and TypeMethodDescriptionStream<CacheEntry<K, V>> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
-
Constructor Details
-
PersistenceEntryStreamSupplier
public PersistenceEntryStreamSupplier(Cache<K, V> cache, InternalEntryFactory iceFactory, ToIntFunction<Object> toIntFunction, CacheStream<CacheEntry<K, V>> inMemoryStream, PersistenceManager persistenceManager)
-
-
Method Details
-
buildStream
public Stream<CacheEntry<K,V>> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel) - Specified by:
buildStreamin interfaceAbstractLocalCacheStream.StreamSupplier<K,V>
-