Package org.elasticsearch.action.support
Interface WriteResponse
- All Known Implementing Classes:
BulkShardResponse
,DeleteResponse
,DocWriteResponse
,IndexResponse
,ResyncReplicationResponse
,RetentionLeaseSyncAction.Response
,UpdateResponse
public interface WriteResponse
Interface implemented by responses for actions that modify the documents in an index like
IndexResponse
, UpdateResponse
,
and BulkResponse
. Rather than implement this directly most implementers should extend DocWriteResponse
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
setForcedRefresh
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. 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
).
-