Record Class NuggetIntrospection.ProviderContext
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetIntrospection.ProviderContext
- Record Components:
correlationId- safe correlation idrequestedAt- request timestampdeadlineAt- provider deadline
- Enclosing class:
NuggetIntrospection
public static record NuggetIntrospection.ProviderContext(String correlationId, Instant requestedAt, Instant deadlineAt)
extends Record
Bounded execution context passed to read-only introspection providers.
The context carries only safe request metadata. Providers must return immutable snapshots and must not retain the context. The deadline is a local best-effort deadline for provider work; the runtime may cancel or ignore late provider results after it expires.
-
Constructor Summary
ConstructorsConstructorDescriptionProviderContext(String correlationId, Instant requestedAt, Instant deadlineAt) Creates a safe immutable context. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecorrelationIdrecord component.Returns the value of thedeadlineAtrecord component.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 therequestedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProviderContext
-
-
Method Details
-
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). -
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
requestedAt
Returns the value of therequestedAtrecord component.- Returns:
- the value of the
requestedAtrecord component
-
deadlineAt
Returns the value of thedeadlineAtrecord component.- Returns:
- the value of the
deadlineAtrecord component
-