Record Class NuggetControl.Request
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetControl.Request
- Record Components:
admissionId- accepted Phase 7.1 admission idsecurityContext- caller security context for authorizationoperationId- caller-supplied replay/idempotency operation id, or emptycorrelationId- safe correlation idaction- requested actionmode- requested modetargetNuggetId- exact target nugget idtargetRuntimeId- exact target runtime idtargetGeneration- expected runtime generation, or0confirmation- server-issued confirmation value, or emptyrequestedAt- request creation timestampdeadlineAt- absolute deadline for the complete operationmetadata- safe request metadata
- Enclosing class:
NuggetControl
public static record NuggetControl.Request(String admissionId, SecurityContext securityContext, String operationId, String correlationId, NuggetControl.Action action, NuggetControl.Mode mode, String targetNuggetId, String targetRuntimeId, long targetGeneration, String confirmation, Instant requestedAt, Instant deadlineAt, Map<String,String> metadata)
extends Record
Nugget-control request metadata.
The admission id and confirmation value are sensitive operational credentials. They are consumed by the server and must not be rendered or audited. The target fields must identify the exact current nugget; an all-target or ambiguous request is invalid at the presentation boundary and must still be rejected by the service if submitted directly.
deadlineAt is the caller's request deadline. A server may also
apply a shorter configured control timeout to accepted asynchronous
shutdown or termination callbacks. If that server-owned timeout expires,
replay with the same operation id reports the retained degraded outcome
and does not re-run the callback, even if the original callback later
returns.
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(String admissionId, SecurityContext securityContext, String operationId, String correlationId, NuggetControl.Action action, NuggetControl.Mode mode, String targetNuggetId, String targetRuntimeId, long targetGeneration, String confirmation, Instant requestedAt, Instant deadlineAt, Map<String, String> metadata) Creates immutable request metadata. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theadmissionIdrecord component.Returns the value of theconfirmationrecord component.Returns 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.metadata()Returns the value of themetadatarecord component.mode()Returns the value of themoderecord component.Returns the value of theoperationIdrecord component.Returns the value of therequestedAtrecord component.Returns the value of thesecurityContextrecord component.longReturns the value of thetargetGenerationrecord component.Returns the value of thetargetNuggetIdrecord component.Returns the value of thetargetRuntimeIdrecord component.toString()
-
Constructor Details
-
Request
public Request(String admissionId, SecurityContext securityContext, String operationId, String correlationId, NuggetControl.Action action, NuggetControl.Mode mode, String targetNuggetId, String targetRuntimeId, long targetGeneration, String confirmation, Instant requestedAt, Instant deadlineAt, Map<String, String> metadata) Creates immutable request metadata.
-
-
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. -
admissionId
Returns the value of theadmissionIdrecord component.- Returns:
- the value of the
admissionIdrecord component
-
securityContext
Returns the value of thesecurityContextrecord component.- Returns:
- the value of the
securityContextrecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
action
-
mode
-
targetNuggetId
Returns the value of thetargetNuggetIdrecord component.- Returns:
- the value of the
targetNuggetIdrecord component
-
targetRuntimeId
Returns the value of thetargetRuntimeIdrecord component.- Returns:
- the value of the
targetRuntimeIdrecord component
-
targetGeneration
public long targetGeneration()Returns the value of thetargetGenerationrecord component.- Returns:
- the value of the
targetGenerationrecord component
-
confirmation
Returns the value of theconfirmationrecord component.- Returns:
- the value of the
confirmationrecord 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
-
metadata
-