Module org.elasticsearch.server
Class AcknowledgedResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.master.AcknowledgedResponse
- All Implemented Interfaces:
- Writeable,- RefCounted,- ToXContent,- ToXContentObject
- Direct Known Subclasses:
- ClusterRerouteResponse,- ClusterUpdateSettingsResponse,- ShardsAcknowledgedResponse
A response that indicates that a request has been acknowledged
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponseActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final booleanstatic final AcknowledgedResponsestatic final AcknowledgedResponseFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCustomFields(XContentBuilder builder, ToXContent.Params params) protected static <T extends AcknowledgedResponse>
 voiddeclareAcknowledgedField(ConstructingObjectParser<T, Void> objectParser) booleanstatic AcknowledgedResponsefromXContent(XContentParser parser) inthashCode()final booleanReturns whether the response is acknowledged or notstatic AcknowledgedResponseof(boolean acknowledged) static AcknowledgedResponsereadFrom(StreamInput in) final XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessagedecRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObjectisFragment
- 
Field Details- 
TRUE
- 
FALSE
- 
acknowledgedprotected final boolean acknowledged
 
- 
- 
Constructor Details- 
AcknowledgedResponse- Throws:
- IOException
 
- 
AcknowledgedResponseprotected AcknowledgedResponse(boolean acknowledged) 
 
- 
- 
Method Details- 
declareAcknowledgedFieldprotected static <T extends AcknowledgedResponse> void declareAcknowledgedField(ConstructingObjectParser<T, Void> objectParser) 
- 
readFrom- Throws:
- IOException
 
- 
of
- 
isAcknowledgedpublic final boolean isAcknowledged()Returns whether the response is acknowledged or not- Returns:
- true if the response is acknowledged, false otherwise
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
toXContentpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
addCustomFieldsprotected void addCustomFields(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
- IOException
 
- 
fromXContent- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
 
-