Record Class PkiServerConfiguration.Execution
java.lang.Object
java.lang.Record
zeroecho.pki.server.PkiServerConfiguration.Execution
- Record Components:
transportWorkers- fixed HTTPS handler worker counttransportQueueCapacity- bounded handler backlogoperationWorkers- maximum concurrently executing gateway callsoperationQueueCapacity- bounded waiting gateway callsmaximumAdmittedRequests- maximum requests admitted across parsing and executiondefaultDeadline- default request deadlinemaximumDeadline- hard caller deadline ceilinggracefulShutdown- graceful drain durationforcedShutdown- 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 Summary
ConstructorsConstructorDescriptionExecution(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 Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultDeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforcedShutdownrecord component.Returns the value of thegracefulShutdownrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumAdmittedRequestsrecord component.Returns the value of themaximumDeadlinerecord component.intReturns the value of theoperationQueueCapacityrecord component.intReturns the value of theoperationWorkersrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetransportQueueCapacityrecord component.intReturns the value of thetransportWorkersrecord component.
-
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
-
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. -
transportWorkers
public int transportWorkers()Returns the value of thetransportWorkersrecord component.- Returns:
- the value of the
transportWorkersrecord component
-
transportQueueCapacity
public int transportQueueCapacity()Returns the value of thetransportQueueCapacityrecord component.- Returns:
- the value of the
transportQueueCapacityrecord component
-
operationWorkers
public int operationWorkers()Returns the value of theoperationWorkersrecord component.- Returns:
- the value of the
operationWorkersrecord component
-
operationQueueCapacity
public int operationQueueCapacity()Returns the value of theoperationQueueCapacityrecord component.- Returns:
- the value of the
operationQueueCapacityrecord component
-
maximumAdmittedRequests
public int maximumAdmittedRequests()Returns the value of themaximumAdmittedRequestsrecord component.- Returns:
- the value of the
maximumAdmittedRequestsrecord component
-
defaultDeadline
Returns the value of thedefaultDeadlinerecord component.- Returns:
- the value of the
defaultDeadlinerecord component
-
maximumDeadline
Returns the value of themaximumDeadlinerecord component.- Returns:
- the value of the
maximumDeadlinerecord component
-
gracefulShutdown
Returns the value of thegracefulShutdownrecord component.- Returns:
- the value of the
gracefulShutdownrecord component
-
forcedShutdown
Returns the value of theforcedShutdownrecord component.- Returns:
- the value of the
forcedShutdownrecord component
-