Package akka.javasdk.workflow
Record Class Workflow.StepSettings
-
Constructor Summary
ConstructorsConstructorDescriptionStepSettings
(String stepName, Optional<Duration> timeout, Optional<Workflow.RecoverStrategy<?>> recovery) Creates an instance of aStepSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Workflow.StepSettings
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.recovery()
Returns the value of therecovery
record component.stepName()
Returns the value of thestepName
record component.timeout()
Returns the value of thetimeout
record component.final String
toString()
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 aStepSettings
record class.- Parameters:
stepName
- the value for thestepName
record componenttimeout
- the value for thetimeout
record componentrecovery
- the value for therecovery
record 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 thestepName
record component.- Returns:
- the value of the
stepName
record component
-
timeout
Returns the value of thetimeout
record component.- Returns:
- the value of the
timeout
record component
-
recovery
Returns the value of therecovery
record component.- Returns:
- the value of the
recovery
record component
-