Class AcknowledgedResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Direct Known Subclasses:
ClusterRerouteResponse, ClusterUpdateSettingsResponse, ShardsAcknowledgedResponse

public class AcknowledgedResponse extends ActionResponse implements org.elasticsearch.xcontent.ToXContentObject
A response that indicates that a request has been acknowledged
  • Field Details

  • Constructor Details

  • Method Details

    • declareAcknowledgedField

      protected static <T extends AcknowledgedResponse> void declareAcknowledgedField(org.elasticsearch.xcontent.ConstructingObjectParser<T,Void> objectParser)
    • readFrom

      public static AcknowledgedResponse readFrom(StreamInput in) throws IOException
      Throws:
      IOException
    • of

      public static AcknowledgedResponse of(boolean acknowledged)
    • isAcknowledged

      public final boolean isAcknowledged()
      Returns whether the response is acknowledged or not
      Returns:
      true if the response is acknowledged, false otherwise
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

      public final org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • addCustomFields

      protected void addCustomFields(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Throws:
      IOException
    • fromXContent

      public static AcknowledgedResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object