Record Class InvocationOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.InvocationOptions
- Record Components:
invocationId- caller-supplied or generated invocation identifierdeadline- invocation deadline durationmetadata- public invocation metadata
- All Implemented Interfaces:
Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeadline()Returns the value of thedeadlinerecord component.static InvocationOptionsdefaults()Returns default invocation 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 theinvocationIdrecord component.metadata()Returns the value of themetadatarecord component.Decodes typed reliability options from this invocation's metadata.final StringtoString()Returns a string representation of this record class.withReliabilityOptions(InvocationReliabilityOptions reliabilityOptions) Returns a copy with reliability metadata merged into the public metadata map.
-
Constructor Details
-
InvocationOptions
-
-
Method Details
-
defaults
Returns default invocation options.- Returns:
- default options
-
reliabilityOptions
Decodes typed reliability options from this invocation's metadata.- Returns:
- reliability options
-
withReliabilityOptions
Returns a copy with reliability metadata merged into the public metadata map.- Parameters:
reliabilityOptions- reliability options to encode- Returns:
- invocation options with reliability metadata
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
invocationId
Returns the value of theinvocationIdrecord component.- Returns:
- the value of the
invocationIdrecord component
-
deadline
-
metadata
-