Record Class PkiServerConfiguration.Execution

java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration.Execution
Record Components:
transportWorkers - fixed HTTPS handler worker count
transportQueueCapacity - bounded handler backlog
operationWorkers - maximum concurrently executing gateway calls
operationQueueCapacity - bounded waiting gateway calls
maximumAdmittedRequests - maximum requests admitted across parsing and execution
defaultDeadline - default request deadline
maximumDeadline - hard caller deadline ceiling
gracefulShutdown - graceful drain duration
forcedShutdown - forced cancellation and termination duration
Enclosing class:
PkiServerConfiguration

public static record PkiServerConfiguration.Execution(int transportWorkers, int transportQueueCapacity, int operationWorkers, int operationQueueCapacity, int maximumAdmittedRequests, Duration defaultDeadline, Duration maximumDeadline, Duration gracefulShutdown, Duration forcedShutdown) extends Record
Bounded worker, queue, admission, deadline and shutdown policy.
  • Constructor Details

    • Execution

      public Execution(int transportWorkers, int transportQueueCapacity, int operationWorkers, int operationQueueCapacity, int maximumAdmittedRequests, Duration defaultDeadline, Duration maximumDeadline, Duration gracefulShutdown, Duration forcedShutdown)
      Validates finite positive bounds and duration ordering.
  • Method Details

    • 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.
    • transportWorkers

      public int transportWorkers()
      Returns the value of the transportWorkers record component.
      Returns:
      the value of the transportWorkers record component
    • transportQueueCapacity

      public int transportQueueCapacity()
      Returns the value of the transportQueueCapacity record component.
      Returns:
      the value of the transportQueueCapacity record component
    • operationWorkers

      public int operationWorkers()
      Returns the value of the operationWorkers record component.
      Returns:
      the value of the operationWorkers record component
    • operationQueueCapacity

      public int operationQueueCapacity()
      Returns the value of the operationQueueCapacity record component.
      Returns:
      the value of the operationQueueCapacity record component
    • maximumAdmittedRequests

      public int maximumAdmittedRequests()
      Returns the value of the maximumAdmittedRequests record component.
      Returns:
      the value of the maximumAdmittedRequests record component
    • defaultDeadline

      public Duration defaultDeadline()
      Returns the value of the defaultDeadline record component.
      Returns:
      the value of the defaultDeadline record component
    • maximumDeadline

      public Duration maximumDeadline()
      Returns the value of the maximumDeadline record component.
      Returns:
      the value of the maximumDeadline record component
    • gracefulShutdown

      public Duration gracefulShutdown()
      Returns the value of the gracefulShutdown record component.
      Returns:
      the value of the gracefulShutdown record component
    • forcedShutdown

      public Duration forcedShutdown()
      Returns the value of the forcedShutdown record component.
      Returns:
      the value of the forcedShutdown record component