Record Class NuggetAdminRequestContext
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetAdminRequestContext
- Record Components:
protocolVersion- requested public admin protocol versionrequestId- stable request id for this caller attemptcorrelationId- safe audit correlation idtarget- authoritative target identity, ornullfor discovery and all-target commandsoperationKind- typed operation familyrequestedAt- safe request creation timestampclientBudget- bounded caller budget metadataclientDeadlineAt- optional caller deadline metadatametadata- safe request metadata in schema-visible insertion order
public record NuggetAdminRequestContext(int protocolVersion, String requestId, String correlationId, NuggetAdminTarget target, NuggetAdminOperationKind operationKind, Instant requestedAt, Duration clientBudget, Instant clientDeadlineAt, Map<String,String> metadata)
extends Record
Shared request context for public nugget administration operations.
The context carries safe client and correlation metadata for typed
operation families. It does not carry PIN material, admission credentials,
authorization decisions, HTTP state, browser session state, OAuth tokens, or
arbitrary provider data. The client budget and optional client deadline are
metadata used to propagate a bounded caller budget; they are not an
authoritative clock source. Providers and runtimes remain responsible for
server-side deadline enforcement and must preserve the existing absolute
deadline fields on NuggetApplicationLifecycle.Request and
NuggetControl.Request.
The constructor rejects unsupported protocol versions before an instance can be submitted to a service method. Instances are immutable and thread-safe.
-
Constructor Summary
ConstructorsConstructorDescriptionNuggetAdminRequestContext(int protocolVersion, String requestId, String correlationId, NuggetAdminTarget target, NuggetAdminOperationKind operationKind, Instant requestedAt, Duration clientBudget, Instant clientDeadlineAt, Map<String, String> metadata) Creates a validated immutable context. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientBudgetrecord component.Returns the value of theclientDeadlineAtrecord component.Returns the value of thecorrelationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of theoperationKindrecord component.intReturns the value of theprotocolVersionrecord component.Returns the value of therequestedAtrecord component.Returns the value of therequestIdrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NuggetAdminRequestContext
public NuggetAdminRequestContext(int protocolVersion, String requestId, String correlationId, NuggetAdminTarget target, NuggetAdminOperationKind operationKind, Instant requestedAt, Duration clientBudget, Instant clientDeadlineAt, Map<String, String> metadata) Creates a validated immutable context.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
protocolVersion
public int protocolVersion()Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
requestId
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
target
-
operationKind
Returns the value of theoperationKindrecord component.- Returns:
- the value of the
operationKindrecord component
-
requestedAt
Returns the value of therequestedAtrecord component.- Returns:
- the value of the
requestedAtrecord component
-
clientBudget
Returns the value of theclientBudgetrecord component.- Returns:
- the value of the
clientBudgetrecord component
-
clientDeadlineAt
Returns the value of theclientDeadlineAtrecord component.- Returns:
- the value of the
clientDeadlineAtrecord component
-
metadata
-