Module org.elasticsearch.server
Record Class AddIndexBlockClusterStateUpdateRequest
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.indices.readonly.AddIndexBlockClusterStateUpdateRequest
public record AddIndexBlockClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, ProjectId projectId, IndexMetadata.APIBlock block, boolean markVerified, long taskId, Index[] indices)
extends Record
Cluster state update request that allows to add a block to one or more indices
-
Constructor Summary
ConstructorsConstructorDescriptionAddIndexBlockClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, ProjectId projectId, IndexMetadata.APIBlock block, boolean markVerified, long taskId, Index[] indices) Creates an instance of aAddIndexBlockClusterStateUpdateRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theackTimeoutrecord component.block()Returns the value of theblockrecord 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.booleanReturns the value of themarkVerifiedrecord component.Returns the value of themasterNodeTimeoutrecord component.Returns the value of theprojectIdrecord component.longtaskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AddIndexBlockClusterStateUpdateRequest
public AddIndexBlockClusterStateUpdateRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, ProjectId projectId, IndexMetadata.APIBlock block, boolean markVerified, long taskId, Index[] indices) Creates an instance of aAddIndexBlockClusterStateUpdateRequestrecord class.- Parameters:
masterNodeTimeout- the value for themasterNodeTimeoutrecord componentackTimeout- the value for theackTimeoutrecord componentprojectId- the value for theprojectIdrecord componentblock- the value for theblockrecord componentmarkVerified- the value for themarkVerifiedrecord componenttaskId- the value for thetaskIdrecord 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
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
markVerified
public boolean markVerified()Returns the value of themarkVerifiedrecord component.- Returns:
- the value of the
markVerifiedrecord component
-
taskId
public long taskId()Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
indices
Returns the value of theindicesrecord component.- Returns:
- the value of the
indicesrecord component
-