Module org.elasticsearch.server
Interface IsAcknowledgedSupplier
- All Known Implementing Classes:
AcknowledgedResponse
,AddIndexBlockResponse
,CloseIndexResponse
,ClusterRerouteResponse
,ClusterUpdateSettingsResponse
,CreateIndexResponse
,OpenIndexResponse
,RolloverResponse
,ShardsAcknowledgedResponse
public interface IsAcknowledgedSupplier
A response to an action which updated the cluster state, but needs to report whether any relevant nodes failed to apply the update. For
instance, a
PutMappingRequest
may update a mapping in the index metadata, but
one or more data nodes may fail to acknowledge the new mapping within the ack timeout. If this happens then clients must accept that
subsequent requests that rely on the mapping update may return errors from the lagging data nodes.
Actions which return a payload-free acknowledgement of success should generally prefer to use ActionResponse.Empty
instead of
an implementation of IsAcknowledgedSupplier
, and other listeners should generally prefer Void
.
-
Method Summary
-
Method Details
-
isAcknowledged
boolean isAcknowledged()
-