Class BroadcastResponse

  • Direct Known Subclasses:
    DataStreamsStatsResponse

    public class BroadcastResponse
    extends java.lang.Object
    Represents a response to a request that is broadcast to a collection of shards.
    • Method Detail

      • shards

        public BroadcastResponse.Shards shards()
        Represents the shard-level summary of the response execution.
        Returns:
        the shard-level response summary
      • fromXContent

        public static BroadcastResponse fromXContent​(org.opensearch.common.xcontent.XContentParser parser)
                                              throws java.io.IOException
        Parses a broadcast response.
        Parameters:
        parser - the parser
        Returns:
        a broadcast response parsed from the specified parser
        Throws:
        java.io.IOException - if an I/O exception occurs parsing the response
      • declareShardsField

        protected static <T extends BroadcastResponse> void declareShardsField​(org.opensearch.common.xcontent.ConstructingObjectParser<T,​java.lang.Void> PARSER)