Record Class Timing
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.dsl.api.Timing
- Record Components:
timeout- timeout for primitive completion
Reusable timing configuration shared by primitive specs.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.timeout()Returns the value of thetimeoutrecord component.timeout(long timeoutSeconds) Returns a copy of this timing specification with the provided timeout in seconds.Returns a copy of this timing specification with the provided timeout.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Timing
Creates an instance of aTimingrecord class.- Parameters:
timeout- the value for thetimeoutrecord component
-
-
Method Details
-
timeout
Returns a copy of this timing specification with the provided timeout.- Parameters:
timeout- timeout for primitive completion- Returns:
- copied timing specification with updated timeout
-
timeout
Returns a copy of this timing specification with the provided timeout in seconds.- Parameters:
timeoutSeconds- timeout in seconds- Returns:
- copied timing specification with updated timeout
-
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). -
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-