Record Class InvocationMetadata
java.lang.Object
java.lang.Record
org.j7m.middleware.api.InvocationMetadata
- Record Components:
invocationId- invocation identifiertarget- target object referencemethod- method namestartedAtMillis- start timestampdurationNanos- elapsed time in nanosecondssuccess- whether invocation succeedederrorCode- failure code when unsuccessfulmetadata- public metadata
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationMetadata(String invocationId, ObjectRef target, String method, long startedAtMillis, long durationNanos, boolean success, MiddlewareErrorCode errorCode, Map<String, String> metadata) Creates immutable invocation metadata. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationIdrecord component.metadata()Returns the value of themetadatarecord component.method()Returns the value of themethodrecord component.Returns a reliability context view of this invocation metadata.Decodes typed reliability options from public invocation metadata.longReturns the value of thestartedAtMillisrecord component.booleansuccess()Returns the value of thesuccessrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InvocationMetadata
-
-
Method Details
-
reliabilityOptions
Decodes typed reliability options from public invocation metadata.- Returns:
- reliability options
-
reliabilityContext
Returns a reliability context view of this invocation metadata.- Returns:
- reliability context
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
invocationId
Returns the value of theinvocationIdrecord component.- Returns:
- the value of the
invocationIdrecord component
-
target
-
method
-
startedAtMillis
public long startedAtMillis()Returns the value of thestartedAtMillisrecord component.- Returns:
- the value of the
startedAtMillisrecord component
-
durationNanos
public long durationNanos()Returns the value of thedurationNanosrecord component.- Returns:
- the value of the
durationNanosrecord component
-
success
-
errorCode
-
metadata
-