Record Class AdapterTckRunner.ExecutionPolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.adapter.tck.AdapterTckRunner.ExecutionPolicy
- Record Components:
operationTimeout- maximum time allowed for one provider or probe operationcleanupTimeout- maximum time spent waiting for cancelled TCK workersmaxScenarios- maximum scenarios accepted in one profilemaxFailureModes- maximum failure-mode checks accepted in one runmaxReportEntries- maximum retained findings and report entries per listmaxTextLength- maximum retained diagnostic text length
- Enclosing class:
AdapterTckRunner
public static record AdapterTckRunner.ExecutionPolicy(Duration operationTimeout, Duration cleanupTimeout, int maxScenarios, int maxFailureModes, int maxReportEntries, int maxTextLength)
extends Record
Runner-owned execution limits for a TCK run.
The policy is immutable and thread-safe. Values are clamped by hard platform ceilings so custom profiles cannot turn the TCK into an unbounded workload. Operation timeouts apply to provider inspection, semantic probes, failure-mode probes, redaction probes, and provider cleanup. Cleanup timeout bounds executor shutdown after cancellation has been requested.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionPolicy(Duration operationTimeout, Duration cleanupTimeout, int maxScenarios, int maxFailureModes, int maxReportEntries, int maxTextLength) Creates a runner execution policy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecleanupTimeoutrecord component.defaults()Returns the default bounded execution policy.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 themaxFailureModesrecord component.intReturns the value of themaxReportEntriesrecord component.intReturns the value of themaxScenariosrecord component.intReturns the value of themaxTextLengthrecord component.Returns the value of theoperationTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutionPolicy
public ExecutionPolicy(Duration operationTimeout, Duration cleanupTimeout, int maxScenarios, int maxFailureModes, int maxReportEntries, int maxTextLength) Creates a runner execution policy.- Throws:
IllegalArgumentException- if a limit is non-positive or exceeds the hard TCK ceiling
-
-
Method Details
-
defaults
Returns the default bounded execution policy.- Returns:
- default execution policy
-
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. -
operationTimeout
Returns the value of theoperationTimeoutrecord component.- Returns:
- the value of the
operationTimeoutrecord component
-
cleanupTimeout
Returns the value of thecleanupTimeoutrecord component.- Returns:
- the value of the
cleanupTimeoutrecord component
-
maxScenarios
public int maxScenarios()Returns the value of themaxScenariosrecord component.- Returns:
- the value of the
maxScenariosrecord component
-
maxFailureModes
public int maxFailureModes()Returns the value of themaxFailureModesrecord component.- Returns:
- the value of the
maxFailureModesrecord component
-
maxReportEntries
public int maxReportEntries()Returns the value of themaxReportEntriesrecord component.- Returns:
- the value of the
maxReportEntriesrecord component
-
maxTextLength
public int maxTextLength()Returns the value of themaxTextLengthrecord component.- Returns:
- the value of the
maxTextLengthrecord component
-