K
- key typeV
- resulting value typepublic class NoMapIteratorOperation<K,V> extends MapIteratorOperation<K,V,V>
KeyTrackingTerminalOperation.IntermediateCollector<C>
batchSize
intermediateOperations, supplier
Constructor and Description |
---|
NoMapIteratorOperation(Iterable<IntermediateOperation> intermediateOperations,
Supplier<Stream<CacheEntry>> supplier,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
lostSegment(boolean stopIfLost)
This method will be invoked when the operation is known to be performing on a given set of segments
and this node no longer owns 1 or many of them.
|
List<V> |
performOperation(KeyTrackingTerminalOperation.IntermediateCollector<Collection<V>> response)
Invoked when a key aware operation is desired without rehash being enabled.
|
Collection<CacheEntry<K,V>> |
performOperationRehashAware(KeyTrackingTerminalOperation.IntermediateCollector<Collection<CacheEntry<K,V>>> response)
Invoked when a key and rehash aware operation is desired.
|
getBatchSize
getIntermediateOperations, handleInjection, setSupplier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleInjection, setSupplier
public NoMapIteratorOperation(Iterable<IntermediateOperation> intermediateOperations, Supplier<Stream<CacheEntry>> supplier, int batchSize)
public boolean lostSegment(boolean stopIfLost)
SegmentAwareOperation
lostSegment
in interface SegmentAwareOperation
lostSegment
in class MapIteratorOperation<K,V,V>
stopIfLost
- argument to tell the operation that if this segment affects that it should not
perform any more operations if possible as all segments have been lost.public List<V> performOperation(KeyTrackingTerminalOperation.IntermediateCollector<Collection<V>> response)
KeyTrackingTerminalOperation
performOperation
in interface KeyTrackingTerminalOperation<K,V,V>
performOperation
in class MapIteratorOperation<K,V,V>
response
- the collector that will be called back for any intermediate resultspublic Collection<CacheEntry<K,V>> performOperationRehashAware(KeyTrackingTerminalOperation.IntermediateCollector<Collection<CacheEntry<K,V>>> response)
KeyTrackingTerminalOperation
performOperationRehashAware
in interface KeyTrackingTerminalOperation<K,V,V>
performOperationRehashAware
in class MapIteratorOperation<K,V,V>
response
- the collector that will be called back for any intermediate resultsCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.