Class KeyPublisherResponse
java.lang.Object
org.infinispan.reactive.publisher.impl.commands.batch.PublisherResponse
org.infinispan.reactive.publisher.impl.commands.batch.KeyPublisherResponse
A Publisher Response that is used when key tracking is enabled. This is used in cases when EXACTLY_ONCE delivery
guarantee is needed and a map (that isn't encoder based) or flat map operation is required.
The keys array will hold all of the original keys for the mapped/flatmapped values.
The extraObjects array will only be required when using flatMap based operation. This is required as some flat map operations may return more than one value. In this case it is possible to overflow the results array (sized based on batch size). However since we are tracking by key we must retain all values that map to a given key in the response.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyPublisherResponse(Object[] results, org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments, int size, boolean complete, List<PublisherHandler.SegmentResult> segmentResults, Object[] extraObjects, int extraSize, Object[] keys, int keySize) -
Method Summary
Modifier and TypeMethodDescriptionObject[]intvoidkeysForNonCompletedSegments(ObjIntConsumer consumer) toString()Methods inherited from class org.infinispan.reactive.publisher.impl.commands.batch.PublisherResponse
emptyResponse, getCompletedSegments, getLostSegments, getResults, getSegmentResults, getSize, isComplete
-
Constructor Details
-
KeyPublisherResponse
public KeyPublisherResponse(Object[] results, org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments, int size, boolean complete, List<PublisherHandler.SegmentResult> segmentResults, Object[] extraObjects, int extraSize, Object[] keys, int keySize)
-
-
Method Details
-
getExtraSize
public int getExtraSize() -
getExtraObjects
-
keysForNonCompletedSegments
- Overrides:
keysForNonCompletedSegmentsin classPublisherResponse
-
toString
- Overrides:
toStringin classPublisherResponse
-