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 operation
cleanupTimeout - maximum time spent waiting for cancelled TCK workers
maxScenarios - maximum scenarios accepted in one profile
maxFailureModes - maximum failure-mode checks accepted in one run
maxReportEntries - maximum retained findings and report entries per list
maxTextLength - 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 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

      public static AdapterTckRunner.ExecutionPolicy defaults()
      Returns the default bounded execution policy.
      Returns:
      default execution policy
    • 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.
    • operationTimeout

      public Duration operationTimeout()
      Returns the value of the operationTimeout record component.
      Returns:
      the value of the operationTimeout record component
    • cleanupTimeout

      public Duration cleanupTimeout()
      Returns the value of the cleanupTimeout record component.
      Returns:
      the value of the cleanupTimeout record component
    • maxScenarios

      public int maxScenarios()
      Returns the value of the maxScenarios record component.
      Returns:
      the value of the maxScenarios record component
    • maxFailureModes

      public int maxFailureModes()
      Returns the value of the maxFailureModes record component.
      Returns:
      the value of the maxFailureModes record component
    • maxReportEntries

      public int maxReportEntries()
      Returns the value of the maxReportEntries record component.
      Returns:
      the value of the maxReportEntries record component
    • maxTextLength

      public int maxTextLength()
      Returns the value of the maxTextLength record component.
      Returns:
      the value of the maxTextLength record component