Package akka.javasdk.workflow
Record Class Workflow.StepSettings
-
Constructor Summary
ConstructorsConstructorDescriptionStepSettings(String stepName, Optional<Duration> timeout, Optional<Workflow.RecoverStrategy<?>> recovery) Creates an instance of aStepSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Workflow.StepSettingsfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.recovery()Returns the value of therecoveryrecord component.stepName()Returns the value of thestepNamerecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.withRecovery(Workflow.RecoverStrategy<?> recovery) withTimeout(Duration timeout)
-
Constructor Details
-
StepSettings
public StepSettings(String stepName, Optional<Duration> timeout, Optional<Workflow.RecoverStrategy<?>> recovery) Creates an instance of aStepSettingsrecord class.- Parameters:
stepName- the value for thestepNamerecord componenttimeout- the value for thetimeoutrecord componentrecovery- the value for therecoveryrecord component
-
-
Method Details
-
empty
-
withTimeout
-
withRecovery
-
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). -
stepName
Returns the value of thestepNamerecord component.- Returns:
- the value of the
stepNamerecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
recovery
Returns the value of therecoveryrecord component.- Returns:
- the value of the
recoveryrecord component
-