WriteResponse
, Streamable
, Writeable
public class BulkShardResponse extends ReplicationResponse implements WriteResponse
ReplicationResponse.ShardInfo
TransportResponse.Empty
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY
Constructor | Description |
---|---|
BulkShardResponse(ShardId shardId,
BulkItemResponse[] responses) |
Modifier and Type | Method | Description |
---|---|---|
BulkItemResponse[] |
getResponses() |
|
ShardId |
getShardId() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
void |
setForcedRefresh(boolean forcedRefresh) |
Mark the response as having forced a refresh? Requests that set
WriteRequest.setRefreshPolicy(RefreshPolicy) to
WriteRequest.RefreshPolicy.IMMEDIATE should always mark this as true. |
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getShardInfo, setShardInfo
newWriteableReader
remoteAddress, remoteAddress
public BulkShardResponse(ShardId shardId, BulkItemResponse[] responses)
public ShardId getShardId()
public BulkItemResponse[] getResponses()
public void setForcedRefresh(boolean forcedRefresh)
WriteResponse
WriteRequest.setRefreshPolicy(RefreshPolicy)
to
WriteRequest.RefreshPolicy.IMMEDIATE
should always mark this as true. Requests that set it to WriteRequest.RefreshPolicy.WAIT_UNTIL
will only
set this to true if they run out of refresh listener slots (see IndexSettings.MAX_REFRESH_LISTENERS_PER_SHARD
).setForcedRefresh
in interface WriteResponse
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ReplicationResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class ReplicationResponse
java.io.IOException