Package org.elasticsearch.action.bulk
Class BulkShardResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.action.support.replication.ReplicationResponse
-
- org.elasticsearch.action.bulk.BulkShardResponse
-
- All Implemented Interfaces:
WriteResponse,Streamable,Writeable
public class BulkShardResponse extends ReplicationResponse implements WriteResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
ReplicationResponse.ShardInfo
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
EMPTY
-
-
Constructor Summary
Constructors Constructor Description BulkShardResponse(ShardId shardId, BulkItemResponse[] responses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulkItemResponse[]getResponses()ShardIdgetShardId()voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.voidsetForcedRefresh(boolean forcedRefresh)Mark the response as having forced a refresh? Requests that setWriteRequest.setRefreshPolicy(RefreshPolicy)toWriteRequest.RefreshPolicy.IMMEDIATEshould always mark this as true.voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
getShardInfo, setShardInfo
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Constructor Detail
-
BulkShardResponse
public BulkShardResponse(ShardId shardId, BulkItemResponse[] responses)
-
-
Method Detail
-
getShardId
public ShardId getShardId()
-
getResponses
public BulkItemResponse[] getResponses()
-
setForcedRefresh
public void setForcedRefresh(boolean forcedRefresh)
Description copied from interface:WriteResponseMark the response as having forced a refresh? Requests that setWriteRequest.setRefreshPolicy(RefreshPolicy)toWriteRequest.RefreshPolicy.IMMEDIATEshould always mark this as true. Requests that set it toWriteRequest.RefreshPolicy.WAIT_UNTILwill only set this to true if they run out of refresh listener slots (seeIndexSettings.MAX_REFRESH_LISTENERS_PER_SHARD).- Specified by:
setForcedRefreshin interfaceWriteResponse
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classReplicationResponse- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classReplicationResponse- Throws:
java.io.IOException
-
-