Class PublisherResponse
java.lang.Object
org.infinispan.reactive.publisher.impl.commands.batch.PublisherResponse
- Direct Known Subclasses:
KeyPublisherResponse
The response for a cache publisher request to a given node. It contains an array with how many results there were,
which segments were completed or lost during processing, whether the operation has sent all values (complete), and
also an offset into the results array of which elements don't map to any of the completed segments. Note that
the results will never contain values for a segment that was lost in the same response.
-
Constructor Summary
ConstructorsConstructorDescriptionPublisherResponse(Object[] results, org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments, int size, boolean complete, List<PublisherHandler.SegmentResult> segmentResults) -
Method Summary
Modifier and TypeMethodDescriptionstatic PublisherResponseemptyResponse(org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments) org.infinispan.commons.util.IntSetorg.infinispan.commons.util.IntSetObject[]intgetSize()booleanvoidkeysForNonCompletedSegments(ObjIntConsumer consumer) toString()
-
Constructor Details
-
PublisherResponse
public PublisherResponse(Object[] results, org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments, int size, boolean complete, List<PublisherHandler.SegmentResult> segmentResults)
-
-
Method Details
-
emptyResponse
public static PublisherResponse emptyResponse(org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments) -
getResults
-
getCompletedSegments
public org.infinispan.commons.util.IntSet getCompletedSegments() -
getLostSegments
public org.infinispan.commons.util.IntSet getLostSegments() -
getSize
public int getSize() -
isComplete
public boolean isComplete() -
getSegmentResults
-
keysForNonCompletedSegments
-
toString
-