Package org.graylog2.indexer.datanode
Record Class DatanodeMigrationLockWaitConfig
java.lang.Object
java.lang.Record
org.graylog2.indexer.datanode.DatanodeMigrationLockWaitConfig
- Record Components:
delayBetweenAttempts- How long should we wait between each lock acquire attemptlockAcquireTimeout- Overall timeout when we give up and faillockAcquireListerer- Triggered during each acquire attempt, gives caller a chance to log or propagate this information.
public record DatanodeMigrationLockWaitConfig(Duration delayBetweenAttempts, Duration lockAcquireTimeout, DatanodeMigrationLockListener lockAcquireListerer)
extends Record
Configuration of active wait for index set locks.
-
Constructor Summary
ConstructorsConstructorDescriptionDatanodeMigrationLockWaitConfig(Duration delayBetweenAttempts, Duration lockAcquireTimeout, DatanodeMigrationLockListener lockAcquireListerer) Creates an instance of aDatanodeMigrationLockWaitConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedelayBetweenAttemptsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelockAcquireListererrecord component.Returns the value of thelockAcquireTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatanodeMigrationLockWaitConfig
public DatanodeMigrationLockWaitConfig(Duration delayBetweenAttempts, Duration lockAcquireTimeout, DatanodeMigrationLockListener lockAcquireListerer) Creates an instance of aDatanodeMigrationLockWaitConfigrecord class.- Parameters:
delayBetweenAttempts- the value for thedelayBetweenAttemptsrecord componentlockAcquireTimeout- the value for thelockAcquireTimeoutrecord componentlockAcquireListerer- the value for thelockAcquireListererrecord 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 withObjects::equals(Object,Object). -
delayBetweenAttempts
Returns the value of thedelayBetweenAttemptsrecord component.- Returns:
- the value of the
delayBetweenAttemptsrecord component
-
lockAcquireTimeout
Returns the value of thelockAcquireTimeoutrecord component.- Returns:
- the value of the
lockAcquireTimeoutrecord component
-
lockAcquireListerer
Returns the value of thelockAcquireListererrecord component.- Returns:
- the value of the
lockAcquireListererrecord component
-