Record Class IsolationConfig
java.lang.Object
java.lang.Record
org.j7m.middleware.isolation.IsolationConfig
- Record Components:
providerDirectory- provider-owned temporary and recovery directoryclock- clock used for audit, timeout, and metrics timestampsdefaultBudget- default budget for requests that do not provide onemaxAuditEvents- maximum audit events retained in memory
public record IsolationConfig(Path providerDirectory, Clock clock, org.j7m.middleware.api.isolation.ResourceBudget defaultBudget, int maxAuditEvents)
extends Record
Configuration for first-party isolation providers.
The configuration is immutable and thread-safe. It owns only local provider directories and default admission-control limits; it does not configure Docker, Kubernetes, OCI, or any external sandbox product.
-
Constructor Summary
ConstructorsConstructorDescriptionIsolationConfig(Path providerDirectory, Clock clock, org.j7m.middleware.api.isolation.ResourceBudget defaultBudget, int maxAuditEvents) Creates a validated isolation configuration. -
Method Summary
Modifier and TypeMethodDescriptionclock()Returns the value of theclockrecord component.org.j7m.middleware.api.isolation.ResourceBudgetReturns the value of thedefaultBudgetrecord component.static IsolationConfigCreates a default local configuration.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxAuditEventsrecord component.Returns the value of theproviderDirectoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IsolationConfig
-
-
Method Details
-
defaults
Creates a default local configuration.- Parameters:
directory- provider root directory- Returns:
- validated default configuration
-
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. -
providerDirectory
Returns the value of theproviderDirectoryrecord component.- Returns:
- the value of the
providerDirectoryrecord component
-
clock
-
defaultBudget
public org.j7m.middleware.api.isolation.ResourceBudget defaultBudget()Returns the value of thedefaultBudgetrecord component.- Returns:
- the value of the
defaultBudgetrecord component
-
maxAuditEvents
public int maxAuditEvents()Returns the value of themaxAuditEventsrecord component.- Returns:
- the value of the
maxAuditEventsrecord component
-