Class PublisherResponse
- java.lang.Object
-
- org.infinispan.reactive.publisher.impl.commands.batch.PublisherResponse
-
- Direct Known Subclasses:
KeyPublisherResponse
public class PublisherResponse extends Object
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
Constructors Constructor Description PublisherResponse(Object[] results, org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments, int size, boolean complete, int segmentOffset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublisherResponseemptyResponse(org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments)voidforEachSegmentValue(ObjIntConsumer consumer, int segment)org.infinispan.commons.util.IntSetgetCompletedSegments()org.infinispan.commons.util.IntSetgetLostSegments()Object[]getResults()intgetSize()booleanisComplete()StringtoString()
-
-
-
Constructor Detail
-
PublisherResponse
public PublisherResponse(Object[] results, org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments, int size, boolean complete, int segmentOffset)
-
-
Method Detail
-
emptyResponse
public static PublisherResponse emptyResponse(org.infinispan.commons.util.IntSet completedSegments, org.infinispan.commons.util.IntSet lostSegments)
-
getResults
public Object[] 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()
-
forEachSegmentValue
public void forEachSegmentValue(ObjIntConsumer consumer, int segment)
-
-