Original
- the original type of the underlying stream - normally CacheEntry or ObjectT
- The type returned by the streamS
- The stream interfacepublic abstract class AbstractCacheStream<Original,T,S extends BaseStream<T,S>,S2 extends S> extends Object implements BaseStream<T,S>
Modifier | Constructor and Description |
---|---|
protected |
AbstractCacheStream(AbstractCacheStream<Original,T,S,S2> other) |
protected |
AbstractCacheStream(Address localAddress,
boolean parallel,
DistributionManager dm,
InvocationContext ctx,
Supplier<CacheStream<Original>> supplier,
boolean includeLoader,
int distributedBatchSize,
Executor executor,
ComponentRegistry registry,
Function<? super Original,?> toKeyFunction) |
Modifier and Type | Method and Description |
---|---|
protected S2 |
addIntermediateOperation(IntermediateOperation<T,S,T,S> intermediateOperation) |
protected void |
addIntermediateOperation(Queue<IntermediateOperation> intermediateOperations,
IntermediateOperation<T,S,?,?> intermediateOperation) |
protected void |
addIntermediateOperationMap(IntermediateOperation<T,S,?,?> intermediateOperation) |
void |
close() |
protected static Consumer<Supplier<PrimitiveIterator.OfInt>> |
composeWithExceptions(Consumer<Supplier<PrimitiveIterator.OfInt>> a,
Consumer<Supplier<PrimitiveIterator.OfInt>> b)
Given two SegmentCompletionListener, return a SegmentCompletionListener that
executes both in sequence, even if the first throws an exception, and if both
throw exceptions, add any exceptions thrown by the second as suppressed
exceptions of the first.
|
protected abstract Log |
getLog() |
boolean |
isParallel() |
protected boolean |
isPrimaryOwner(ConsistentHash ch,
Object key) |
S2 |
onClose(Runnable closeHandler) |
S2 |
parallel() |
S2 |
sequential() |
S2 |
unordered() |
protected abstract S2 |
unwrap() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator, spliterator
protected final Queue<IntermediateOperation> intermediateOperations
protected final Address localAddress
protected final DistributionManager dm
protected final Supplier<CacheStream<Original>> supplier
protected final ClusterPublisherManager cpm
protected final Executor executor
protected final ComponentRegistry registry
protected final PartitionHandlingManager partition
protected final KeyPartitioner keyPartitioner
protected final StateTransferLock stateTransferLock
protected final boolean includeLoader
protected final InvocationContext invocationContext
protected Runnable closeRunnable
protected Boolean parallelDistribution
protected boolean parallel
protected boolean rehashAware
protected Set<?> keysToFilter
protected IntSet segmentsToFilter
protected int distributedBatchSize
protected Consumer<Supplier<PrimitiveIterator.OfInt>> segmentCompletionListener
protected org.infinispan.stream.impl.AbstractCacheStream.IteratorOperation iteratorOperation
protected long timeout
protected TimeUnit timeoutUnit
protected AbstractCacheStream(Address localAddress, boolean parallel, DistributionManager dm, InvocationContext ctx, Supplier<CacheStream<Original>> supplier, boolean includeLoader, int distributedBatchSize, Executor executor, ComponentRegistry registry, Function<? super Original,?> toKeyFunction)
protected AbstractCacheStream(AbstractCacheStream<Original,T,S,S2> other)
protected abstract Log getLog()
protected S2 addIntermediateOperation(IntermediateOperation<T,S,T,S> intermediateOperation)
protected void addIntermediateOperationMap(IntermediateOperation<T,S,?,?> intermediateOperation)
protected void addIntermediateOperation(Queue<IntermediateOperation> intermediateOperations, IntermediateOperation<T,S,?,?> intermediateOperation)
protected abstract S2 unwrap()
public boolean isParallel()
isParallel
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 sequential()
sequential
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 parallel()
parallel
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 unordered()
unordered
in interface BaseStream<T,S extends BaseStream<T,S>>
public S2 onClose(Runnable closeHandler)
onClose
in interface BaseStream<T,S extends BaseStream<T,S>>
public void close()
close
in interface AutoCloseable
close
in interface BaseStream<T,S extends BaseStream<T,S>>
protected boolean isPrimaryOwner(ConsistentHash ch, Object key)
protected static Consumer<Supplier<PrimitiveIterator.OfInt>> composeWithExceptions(Consumer<Supplier<PrimitiveIterator.OfInt>> a, Consumer<Supplier<PrimitiveIterator.OfInt>> b)
Copyright © 2021 JBoss by Red Hat. All rights reserved.