Package org.elasticsearch.action.support
Interface WriteResponse
-
- All Known Implementing Classes:
BulkShardResponse,DeleteResponse,DocWriteResponse,IndexResponse,ResyncReplicationResponse,UpdateResponse
public interface WriteResponseInterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetForcedRefresh(boolean forcedRefresh)Mark the response as having forced a refresh? Requests that setWriteRequest.setRefreshPolicy(RefreshPolicy)toWriteRequest.RefreshPolicy.IMMEDIATEshould 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.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).
-
-