Module org.elasticsearch.server
Record Class MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest
- Enclosing class:
- MetadataCreateDataStreamService
public static record MetadataCreateDataStreamService.CreateDataStreamClusterStateUpdateRequest(String name, long startTime, SystemDataStreamDescriptor systemDataStreamDescriptor, TimeValue masterNodeTimeout, TimeValue ackTimeout, boolean performReroute)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCreateDataStreamClusterStateUpdateRequest
(String name, long startTime, SystemDataStreamDescriptor systemDataStreamDescriptor, TimeValue masterNodeTimeout, TimeValue ackTimeout, boolean performReroute) Creates an instance of aCreateDataStreamClusterStateUpdateRequest
record class.CreateDataStreamClusterStateUpdateRequest
(String name, SystemDataStreamDescriptor systemDataStreamDescriptor, TimeValue masterNodeTimeout, TimeValue ackTimeout, boolean performReroute) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theackTimeout
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isSystem()
Returns the value of themasterNodeTimeout
record component.name()
Returns the value of thename
record component.boolean
Returns the value of theperformReroute
record component.long
Returns the value of thestartTime
record component.Returns the value of thesystemDataStreamDescriptor
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CreateDataStreamClusterStateUpdateRequest
public CreateDataStreamClusterStateUpdateRequest(String name, long startTime, @Nullable SystemDataStreamDescriptor systemDataStreamDescriptor, TimeValue masterNodeTimeout, TimeValue ackTimeout, boolean performReroute) Creates an instance of aCreateDataStreamClusterStateUpdateRequest
record class.- Parameters:
name
- the value for thename
record componentstartTime
- the value for thestartTime
record componentsystemDataStreamDescriptor
- the value for thesystemDataStreamDescriptor
record componentmasterNodeTimeout
- the value for themasterNodeTimeout
record componentackTimeout
- the value for theackTimeout
record componentperformReroute
- the value for theperformReroute
record component
-
CreateDataStreamClusterStateUpdateRequest
-
CreateDataStreamClusterStateUpdateRequest
public CreateDataStreamClusterStateUpdateRequest(String name, SystemDataStreamDescriptor systemDataStreamDescriptor, TimeValue masterNodeTimeout, TimeValue ackTimeout, boolean performReroute)
-
-
Method Details
-
isSystem
public boolean isSystem() -
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
startTime
public long startTime()Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
systemDataStreamDescriptor
Returns the value of thesystemDataStreamDescriptor
record component.- Returns:
- the value of the
systemDataStreamDescriptor
record component
-
masterNodeTimeout
Returns the value of themasterNodeTimeout
record component.- Returns:
- the value of the
masterNodeTimeout
record component
-
ackTimeout
Returns the value of theackTimeout
record component.- Returns:
- the value of the
ackTimeout
record component
-
performReroute
public boolean performReroute()Returns the value of theperformReroute
record component.- Returns:
- the value of the
performReroute
record component
-