Record Class IsolationExecutionRequest
java.lang.Object
java.lang.Record
org.j7m.middleware.api.isolation.IsolationExecutionRequest
- Record Components:
subject- subject being isolatedmode- requested isolation modeprocessSpec- process command and environmentpolicy- policy setbudget- resource budgettimeout- optional request timeoutcorrelationId- optional safe correlation identifier
public record IsolationExecutionRequest(IsolationSubject subject, IsolationMode mode, IsolationProcessSpec processSpec, IsolationPolicy policy, ResourceBudget budget, Duration timeout, String correlationId)
extends Record
Request to run or evaluate isolated work.
The request is immutable and thread-safe. A local process provider uses
processSpec(); an in-process policy provider may use it only for
policy evaluation and status metadata. The stored timeout is the effective
deadline, calculated as the shorter of the caller timeout and
ResourceBudget.maxRuntime(). Implementations must not expose raw
command arguments, environment values, or output data in public
diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationExecutionRequest(IsolationSubject subject, IsolationMode mode, IsolationProcessSpec processSpec, IsolationPolicy policy, ResourceBudget budget, Duration timeout, String correlationId) Creates a validated execution request. -
Method Summary
Modifier and TypeMethodDescriptionbudget()Returns the value of thebudgetrecord 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.mode()Returns the value of themoderecord component.policy()Returns the value of thepolicyrecord component.Returns the value of theprocessSpecrecord component.subject()Returns the value of thesubjectrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IsolationExecutionRequest
public IsolationExecutionRequest(IsolationSubject subject, IsolationMode mode, IsolationProcessSpec processSpec, IsolationPolicy policy, ResourceBudget budget, Duration timeout, String correlationId) Creates a validated execution request.
-
-
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). -
subject
-
mode
-
processSpec
Returns the value of theprocessSpecrecord component.- Returns:
- the value of the
processSpecrecord component
-
policy
-
budget
-
timeout
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-