Record Class NuggetAdminRequestContext

java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetAdminRequestContext
Record Components:
protocolVersion - requested public admin protocol version
requestId - stable request id for this caller attempt
correlationId - safe audit correlation id
target - authoritative target identity, or null for discovery and all-target commands
operationKind - typed operation family
requestedAt - safe request creation timestamp
clientBudget - bounded caller budget metadata
clientDeadlineAt - optional caller deadline metadata
metadata - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • protocolVersion

      public int protocolVersion()
      Returns the value of the protocolVersion record component.
      Returns:
      the value of the protocolVersion record component
    • requestId

      public String requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • correlationId

      public String correlationId()
      Returns the value of the correlationId record component.
      Returns:
      the value of the correlationId record component
    • target

      public NuggetAdminTarget target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • operationKind

      public NuggetAdminOperationKind operationKind()
      Returns the value of the operationKind record component.
      Returns:
      the value of the operationKind record component
    • requestedAt

      public Instant requestedAt()
      Returns the value of the requestedAt record component.
      Returns:
      the value of the requestedAt record component
    • clientBudget

      public Duration clientBudget()
      Returns the value of the clientBudget record component.
      Returns:
      the value of the clientBudget record component
    • clientDeadlineAt

      public Instant clientDeadlineAt()
      Returns the value of the clientDeadlineAt record component.
      Returns:
      the value of the clientDeadlineAt record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component