Package org.elasticsearch.cluster.ack
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
,RepositoriesService.RegisterRepositoryRequest
,RepositoriesService.UnregisterRepositoryRequest
,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 TimeValue
ackTimeout()
Returns the maximum time interval to wait for acknowledgementsT
ackTimeout(TimeValue ackTimeout)
Sets the acknowledgement timeoutTimeValue
masterNodeTimeout()
Returns the maximum time interval to wait for the request to be completed on the master nodeT
masterNodeTimeout(TimeValue masterNodeTimeout)
Sets the master node timeout
-
-
-
Method Detail
-
ackTimeout
public TimeValue ackTimeout()
Returns the maximum time interval to wait for acknowledgements- Specified by:
ackTimeout
in interfaceAckedRequest
-
masterNodeTimeout
public TimeValue masterNodeTimeout()
Returns the maximum time interval to wait for the request to be completed on the master node- Specified by:
masterNodeTimeout
in interfaceAckedRequest
-
-