public class CreateIndexResponse extends AcknowledgedResponse
TransportResponse.Empty
Modifier | Constructor and Description |
---|---|
protected |
CreateIndexResponse() |
protected |
CreateIndexResponse(boolean acknowledged,
boolean shardsAcked) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomFields(XContentBuilder builder) |
boolean |
isShardsAcked()
Returns true if the requisite number of shards were started before
returning from the index creation operation.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
isAcknowledged, readAcknowledged, writeAcknowledged
remoteAddress, remoteAddress
protected CreateIndexResponse()
protected CreateIndexResponse(boolean acknowledged, boolean shardsAcked)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionResponse
java.io.IOException
public boolean isShardsAcked()
AcknowledgedResponse.isAcknowledged()
is false, then this also returns false.public void addCustomFields(XContentBuilder builder) throws java.io.IOException
java.io.IOException