Package app.ductape.sdk.database.types
Record Class TriggerTypes.TriggerConfig
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TriggerTypes.TriggerConfig
- Enclosing class:
- TriggerTypes
public static record TriggerTypes.TriggerConfig(Long defaultTimeout, TriggerTypes.TriggerRetry defaultRetry, Boolean parallelExecution, Integer maxConcurrency)
extends Record
TS
ITriggerConfig without functional hooks.-
Constructor Summary
ConstructorsConstructorDescriptionTriggerConfig(Long defaultTimeout, TriggerTypes.TriggerRetry defaultRetry, Boolean parallelExecution, Integer maxConcurrency) Creates an instance of aTriggerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultRetryrecord component.Returns the value of thedefaultTimeoutrecord 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 themaxConcurrencyrecord component.Returns the value of theparallelExecutionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TriggerConfig
public TriggerConfig(Long defaultTimeout, TriggerTypes.TriggerRetry defaultRetry, Boolean parallelExecution, Integer maxConcurrency) Creates an instance of aTriggerConfigrecord class.- Parameters:
defaultTimeout- the value for thedefaultTimeoutrecord componentdefaultRetry- the value for thedefaultRetryrecord componentparallelExecution- the value for theparallelExecutionrecord componentmaxConcurrency- the value for themaxConcurrencyrecord 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). -
defaultTimeout
Returns the value of thedefaultTimeoutrecord component.- Returns:
- the value of the
defaultTimeoutrecord component
-
defaultRetry
Returns the value of thedefaultRetryrecord component.- Returns:
- the value of the
defaultRetryrecord component
-
parallelExecution
Returns the value of theparallelExecutionrecord component.- Returns:
- the value of the
parallelExecutionrecord component
-
maxConcurrency
Returns the value of themaxConcurrencyrecord component.- Returns:
- the value of the
maxConcurrencyrecord component
-