Class ClusterStateUpdateRequest<T extends ClusterStateUpdateRequest<T>>

java.lang.Object
org.elasticsearch.cluster.ack.ClusterStateUpdateRequest<T>
All Implemented Interfaces:
AckedRequest
Direct Known Subclasses:
CreateIndexClusterStateUpdateRequest, IndicesAliasesClusterStateUpdateRequest, IndicesClusterStateUpdateRequest, MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest, MetadataMigrateToDataStreamService.MigrateToDataStreamClusterStateUpdateRequest, UpgradeSettingsClusterStateUpdateRequest

public abstract class ClusterStateUpdateRequest<T extends ClusterStateUpdateRequest<T>>
extends java.lang.Object
implements AckedRequest
Base class to be used when needing to update the cluster state Contains the basic fields that are always needed
  • Constructor Summary

    Constructors
    Constructor Description
    ClusterStateUpdateRequest()  
  • Method Summary

    Modifier and Type Method Description
    org.elasticsearch.common.unit.TimeValue ackTimeout()
    Returns the maximum time interval to wait for acknowledgements
    T ackTimeout​(org.elasticsearch.common.unit.TimeValue ackTimeout)
    Sets the acknowledgement timeout
    org.elasticsearch.common.unit.TimeValue masterNodeTimeout()
    Returns the maximum time interval to wait for the request to be completed on the master node
    T masterNodeTimeout​(org.elasticsearch.common.unit.TimeValue masterNodeTimeout)
    Sets the master node timeout

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClusterStateUpdateRequest

      public ClusterStateUpdateRequest()
  • Method Details

    • ackTimeout

      public org.elasticsearch.common.unit.TimeValue ackTimeout()
      Returns the maximum time interval to wait for acknowledgements
      Specified by:
      ackTimeout in interface AckedRequest
    • ackTimeout

      public T ackTimeout​(org.elasticsearch.common.unit.TimeValue ackTimeout)
      Sets the acknowledgement timeout
    • masterNodeTimeout

      public org.elasticsearch.common.unit.TimeValue masterNodeTimeout()
      Returns the maximum time interval to wait for the request to be completed on the master node
      Specified by:
      masterNodeTimeout in interface AckedRequest
    • masterNodeTimeout

      public T masterNodeTimeout​(org.elasticsearch.common.unit.TimeValue masterNodeTimeout)
      Sets the master node timeout