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 aCreateDataStreamClusterStateUpdateRequestrecord class.CreateDataStreamClusterStateUpdateRequest(String name, SystemDataStreamDescriptor systemDataStreamDescriptor, TimeValue masterNodeTimeout, TimeValue ackTimeout, boolean performReroute) -
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.booleanisSystem()Returns the value of themasterNodeTimeoutrecord component.name()Returns the value of thenamerecord component.booleanReturns the value of theperformRerouterecord component.longReturns the value of thestartTimerecord component.Returns the value of thesystemDataStreamDescriptorrecord component.final StringtoString()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 aCreateDataStreamClusterStateUpdateRequestrecord class.- Parameters:
name- the value for thenamerecord componentstartTime- the value for thestartTimerecord componentsystemDataStreamDescriptor- the value for thesystemDataStreamDescriptorrecord componentmasterNodeTimeout- the value for themasterNodeTimeoutrecord componentackTimeout- the value for theackTimeoutrecord componentperformReroute- the value for theperformRerouterecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
systemDataStreamDescriptor
Returns the value of thesystemDataStreamDescriptorrecord component.- Returns:
- the value of the
systemDataStreamDescriptorrecord component
-
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
-
performReroute
public boolean performReroute()Returns the value of theperformRerouterecord component.- Returns:
- the value of the
performRerouterecord component
-