Package ch.rswk.meta.engine
Record Class EngineRuntime.EngineRuntimeConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.EngineRuntime.EngineRuntimeConfig
- Enclosing class:
EngineRuntime
public static record EngineRuntime.EngineRuntimeConfig(long startUpTimeout, long shutDownTimeout)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theshutDownTimeoutrecord component.private final longThe field for thestartUpTimeoutrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEngineRuntimeConfig(long startUpTimeout, long shutDownTimeout) Creates an instance of aEngineRuntimeConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theshutDownTimeoutrecord component.longReturns the value of thestartUpTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
startUpTimeout
private final long startUpTimeoutThe field for thestartUpTimeoutrecord component. -
shutDownTimeout
private final long shutDownTimeoutThe field for theshutDownTimeoutrecord component.
-
-
Constructor Details
-
EngineRuntimeConfig
public EngineRuntimeConfig(long startUpTimeout, long shutDownTimeout) Creates an instance of aEngineRuntimeConfigrecord class.- Parameters:
startUpTimeout- the value for thestartUpTimeoutrecord componentshutDownTimeout- the value for theshutDownTimeoutrecord component
-
-
Method Details
-
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 '=='. -
startUpTimeout
public long startUpTimeout()Returns the value of thestartUpTimeoutrecord component.- Returns:
- the value of the
startUpTimeoutrecord component
-
shutDownTimeout
public long shutDownTimeout()Returns the value of theshutDownTimeoutrecord component.- Returns:
- the value of the
shutDownTimeoutrecord component
-