Record Class ClusterConfigurationGossiperConfig
java.lang.Object
java.lang.Record
io.camunda.zeebe.dynamic.config.gossip.ClusterConfigurationGossiperConfig
-
Constructor Summary
ConstructorsConstructorDescriptionClusterConfigurationGossiperConfig(boolean enableSync, Duration syncDelay, Duration syncRequestTimeout, int gossipFanout) Creates an instance of aClusterConfigurationGossiperConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theenableSyncrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegossipFanoutrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesyncDelayrecord component.Returns the value of thesyncRequestTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClusterConfigurationGossiperConfig
public ClusterConfigurationGossiperConfig(boolean enableSync, Duration syncDelay, Duration syncRequestTimeout, int gossipFanout) Creates an instance of aClusterConfigurationGossiperConfigrecord class.- Parameters:
enableSync- the value for theenableSyncrecord componentsyncDelay- the value for thesyncDelayrecord componentsyncRequestTimeout- the value for thesyncRequestTimeoutrecord componentgossipFanout- the value for thegossipFanoutrecord 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 '=='. -
enableSync
public boolean enableSync()Returns the value of theenableSyncrecord component.- Returns:
- the value of the
enableSyncrecord component
-
syncDelay
Returns the value of thesyncDelayrecord component.- Returns:
- the value of the
syncDelayrecord component
-
syncRequestTimeout
Returns the value of thesyncRequestTimeoutrecord component.- Returns:
- the value of the
syncRequestTimeoutrecord component
-
gossipFanout
public int gossipFanout()Returns the value of thegossipFanoutrecord component.- Returns:
- the value of the
gossipFanoutrecord component
-