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

      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()
    • getSegmentResults

      public List<PublisherHandler.SegmentResult> getSegmentResults()
    • keysForNonCompletedSegments

      public void keysForNonCompletedSegments(ObjIntConsumer consumer)
    • toString

      public String toString()
      Overrides:
      toString in class Object