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