Record Class JobScheduleOptions
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.core.nonentities.job.JobScheduleOptions
- Record Components:
idempotencyKey- caller-defined duplicate-prevention keyconcurrencyKey- caller-defined ownership keynotBefore- earliest execution timepriority- queue prioritycorrelationId- cross-job correlation identifierparentJobId- explicit parent public job identifiertriggerType- what caused this submissionactor- initiating actorreason- human-readable scheduling reason
public record JobScheduleOptions(String idempotencyKey, String concurrencyKey, LocalDateTime notBefore, int priority, String correlationId, String parentJobId, JobTriggerType triggerType, String actor, String reason)
extends Record
Optional scheduling metadata supplied by an application producer.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionJobScheduleOptions(String idempotencyKey, String concurrencyKey, LocalDateTime notBefore, int priority, String correlationId, String parentJobId, JobTriggerType triggerType, String actor, String reason) Creates an instance of aJobScheduleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.Returns the value of theconcurrencyKeyrecord component.Returns the value of thecorrelationIdrecord component.static JobScheduleOptionsdefaults()Creates default options.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 theidempotencyKeyrecord component.static JobScheduleOptionsCreates options for an operator-initiated submission.Returns the value of thenotBeforerecord component.Returns the value of theparentJobIdrecord component.intpriority()Returns the value of thepriorityrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggerTyperecord component.
-
Constructor Details
-
JobScheduleOptions
public JobScheduleOptions(String idempotencyKey, String concurrencyKey, LocalDateTime notBefore, int priority, String correlationId, String parentJobId, JobTriggerType triggerType, String actor, String reason) Creates an instance of aJobScheduleOptionsrecord class.- Parameters:
idempotencyKey- the value for theidempotencyKeyrecord componentconcurrencyKey- the value for theconcurrencyKeyrecord componentnotBefore- the value for thenotBeforerecord componentpriority- the value for thepriorityrecord componentcorrelationId- the value for thecorrelationIdrecord componentparentJobId- the value for theparentJobIdrecord componenttriggerType- the value for thetriggerTyperecord componentactor- the value for theactorrecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
defaults
Creates default options.- Returns:
- empty scheduling options
-
manual
Creates options for an operator-initiated submission.- Parameters:
actor- initiating actorreason- human-readable submission reason- Returns:
- manual scheduling options
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
concurrencyKey
Returns the value of theconcurrencyKeyrecord component.- Returns:
- the value of the
concurrencyKeyrecord component
-
notBefore
-
priority
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
parentJobId
Returns the value of theparentJobIdrecord component.- Returns:
- the value of the
parentJobIdrecord component
-
triggerType
Returns the value of thetriggerTyperecord component.- Returns:
- the value of the
triggerTyperecord component
-
actor
-
reason
-