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 thePersistenceManager
to publish keys using segments if possible.- Since:
- 9.4
- Author:
- wburns
-
-
Constructor Summary
Constructors Constructor Description PersistenceKeyStreamSupplier(Cache<K,?> cache, ToIntFunction<Object> toIntFunction, CacheStream<K> inMemoryStream, PersistenceManager persistenceManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<K>
buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
-
-
-
Constructor Detail
-
PersistenceKeyStreamSupplier
public PersistenceKeyStreamSupplier(Cache<K,?> cache, ToIntFunction<Object> toIntFunction, CacheStream<K> inMemoryStream, PersistenceManager persistenceManager)
-
-
Method Detail
-
buildStream
public Stream<K> buildStream(org.infinispan.commons.util.IntSet segmentsToFilter, Set<?> keysToFilter, boolean parallel)
- Specified by:
buildStream
in interfaceAbstractLocalCacheStream.StreamSupplier<K,Stream<K>>
-
-