Record Class JobDispatcher.SchedulerConfig
java.lang.Object
java.lang.Record
ai.redouble.nucleo.harness.JobDispatcher.SchedulerConfig
- Enclosing class:
JobDispatcher
public static record JobDispatcher.SchedulerConfig(long schedulerLoopDelayMillis, long shutdownTimeoutMillis)
extends Record
Scheduler configuration.
- Since:
- 0.1 (2025-09-18)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionSchedulerConfig(long schedulerLoopDelayMillis, long shutdownTimeoutMillis) Creates an instance of aSchedulerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theschedulerLoopDelayMillisrecord component.longReturns the value of theshutdownTimeoutMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchedulerConfig
public SchedulerConfig(long schedulerLoopDelayMillis, long shutdownTimeoutMillis) Creates an instance of aSchedulerConfigrecord class.- Parameters:
schedulerLoopDelayMillis- the value for theschedulerLoopDelayMillisrecord componentshutdownTimeoutMillis- the value for theshutdownTimeoutMillisrecord component
-
-
Method Details
-
defaults
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
schedulerLoopDelayMillis
public long schedulerLoopDelayMillis()Returns the value of theschedulerLoopDelayMillisrecord component.- Returns:
- the value of the
schedulerLoopDelayMillisrecord component
-
shutdownTimeoutMillis
public long shutdownTimeoutMillis()Returns the value of theshutdownTimeoutMillisrecord component.- Returns:
- the value of the
shutdownTimeoutMillisrecord component
-