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 likeIndexResponse
,UpdateResponse
, andBulkResponse
. Rather than implement this directly most implementers should extendDocWriteResponse
.
-
-
Method Summary
Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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
).
-
-