Module org.elasticsearch.server
Record Class CloseIndexClusterStateUpdateRequest
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.close.CloseIndexClusterStateUpdateRequest
public record CloseIndexClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, long taskId, ActiveShardCount waitForActiveShards, Index[] indices)
extends Record
Cluster state update request that allows to close one or more indices
-
Constructor Summary
ConstructorsConstructorDescriptionCloseIndexClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, long taskId, ActiveShardCount waitForActiveShards, Index[] indices) Creates an instance of aCloseIndexClusterStateUpdateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theackTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Index[]indices()Returns the value of theindicesrecord component.Returns the value of themasterNodeTimeoutrecord component.longtaskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewaitForActiveShardsrecord component.
-
Constructor Details
-
CloseIndexClusterStateUpdateRequest
public CloseIndexClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, long taskId, ActiveShardCount waitForActiveShards, Index[] indices) Creates an instance of aCloseIndexClusterStateUpdateRequestrecord class.- Parameters:
masterNodeTimeout- the value for themasterNodeTimeoutrecord componentackTimeout- the value for theackTimeoutrecord componenttaskId- the value for thetaskIdrecord componentwaitForActiveShards- the value for thewaitForActiveShardsrecord componentindices- the value for theindicesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
masterNodeTimeout
Returns the value of themasterNodeTimeoutrecord component.- Returns:
- the value of the
masterNodeTimeoutrecord component
-
ackTimeout
Returns the value of theackTimeoutrecord component.- Returns:
- the value of the
ackTimeoutrecord component
-
taskId
public long taskId()Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
waitForActiveShards
Returns the value of thewaitForActiveShardsrecord component.- Returns:
- the value of the
waitForActiveShardsrecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-