Record Class NodesApiProperties.Retry
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.prediction_applier.config.NodesApiProperties.Retry
- Enclosing class:
- NodesApiProperties
public static record NodesApiProperties.Retry(int attempts, int initialDelay, int delayMultiplier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRetry(int attempts, int initialDelay, int delayMultiplier) Creates an instance of aRetryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.intReturns the value of thedelayMultiplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinitialDelayrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Retry
public Retry(int attempts, int initialDelay, int delayMultiplier) Creates an instance of aRetryrecord class.- Parameters:
attempts- the value for theattemptsrecord componentinitialDelay- the value for theinitialDelayrecord componentdelayMultiplier- the value for thedelayMultiplierrecord 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. All components in this record class are compared with '=='. -
attempts
public int attempts()Returns the value of theattemptsrecord component.- Returns:
- the value of the
attemptsrecord component
-
initialDelay
public int initialDelay()Returns the value of theinitialDelayrecord component.- Returns:
- the value of the
initialDelayrecord component
-
delayMultiplier
public int delayMultiplier()Returns the value of thedelayMultiplierrecord component.- Returns:
- the value of the
delayMultiplierrecord component
-