Package io.vertigo.orchestra.definitions
Record Class ProcessTriggeringStrategy
java.lang.Object
java.lang.Record
io.vertigo.orchestra.definitions.ProcessTriggeringStrategy
- Record Components:
initialParams- initialsParams added to the firstWorkspacerescuePeriodInSeconds- the time in seconds a planification is still validcronExpression- an optional cronexpressionmultiExecution- if the process accepts multiexecution at the same time
public record ProcessTriggeringStrategy(Optional<String> cronExpressionOpt, Map<String,String> initialParams, boolean isMultiExecution, int rescuePeriodInSeconds)
extends Record
Strategy for trigerring the process.
- Author:
- mlaroche
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecronExpressionOptrecord 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 theinitialParamsrecord component.booleanReturns the value of theisMultiExecutionrecord component.intReturns the value of therescuePeriodInSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessTriggeringStrategy
public ProcessTriggeringStrategy(Optional<String> cronExpressionOpt, Map<String, String> initialParams, boolean isMultiExecution, int rescuePeriodInSeconds) Creates an instance of aProcessTriggeringStrategyrecord class.- Parameters:
cronExpressionOpt- the value for thecronExpressionOptrecord componentinitialParams- the value for theinitialParamsrecord componentisMultiExecution- the value for theisMultiExecutionrecord componentrescuePeriodInSeconds- the value for therescuePeriodInSecondsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
cronExpressionOpt
Returns the value of thecronExpressionOptrecord component.- Returns:
- the value of the
cronExpressionOptrecord component
-
initialParams
Returns the value of theinitialParamsrecord component.- Returns:
- the value of the
initialParamsrecord component
-
isMultiExecution
public boolean isMultiExecution()Returns the value of theisMultiExecutionrecord component.- Returns:
- the value of the
isMultiExecutionrecord component
-
rescuePeriodInSeconds
public int rescuePeriodInSeconds()Returns the value of therescuePeriodInSecondsrecord component.- Returns:
- the value of the
rescuePeriodInSecondsrecord component
-