Package org.opensearch.action.bulk
Class BulkShardResponse
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.action.support.replication.ReplicationResponse
org.opensearch.action.bulk.BulkShardResponse
- All Implemented Interfaces:
WriteResponse
,org.opensearch.core.common.io.stream.Writeable
Transport response for a bulk shard request
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.action.support.replication.ReplicationResponse
ReplicationResponse.ShardInfo
Nested classes/interfaces inherited from class org.opensearch.core.transport.TransportResponse
org.opensearch.core.transport.TransportResponse.Empty
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.opensearch.action.support.replication.ReplicationResponse
EMPTY
-
Constructor Summary
ConstructorDescriptionBulkShardResponse
(org.opensearch.core.index.shard.ShardId shardId, BulkItemResponse[] responses) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.core.index.shard.ShardId
void
setForcedRefresh
(boolean forcedRefresh) Mark the response as having forced a refresh? Requests that setWriteRequest.setRefreshPolicy(RefreshPolicy)
toWriteRequest.RefreshPolicy.IMMEDIATE
should always mark this as true.void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.replication.ReplicationResponse
getShardInfo, setShardInfo
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
BulkShardResponse
public BulkShardResponse(org.opensearch.core.index.shard.ShardId shardId, BulkItemResponse[] responses)
-
-
Method Details
-
getShardId
public org.opensearch.core.index.shard.ShardId getShardId() -
getResponses
-
setForcedRefresh
public void setForcedRefresh(boolean forcedRefresh) Description copied from interface:WriteResponse
Mark the response as having forced a refresh? Requests that setWriteRequest.setRefreshPolicy(RefreshPolicy)
toWriteRequest.RefreshPolicy.IMMEDIATE
should always mark this as true. Requests that set it toWriteRequest.RefreshPolicy.WAIT_UNTIL
will only set this to true if they run out of refresh listener slots (seeIndexSettings.MAX_REFRESH_LISTENERS_PER_SHARD
).- Specified by:
setForcedRefresh
in interfaceWriteResponse
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classReplicationResponse
- Throws:
IOException
-