Class 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 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)