Class AcknowledgedResponse

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

public class AcknowledgedResponse extends ActionResponse implements org.elasticsearch.common.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.common.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.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • addCustomFields

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

      public static AcknowledgedResponse fromXContent(org.elasticsearch.common.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