Record Class HealthCheckServer.Config
java.lang.Object
java.lang.Record
com.loomcache.server.health.HealthCheckServer.Config
- Enclosing class:
HealthCheckServer
public static record HealthCheckServer.Config(int maxConcurrentRequests, int backlog, Duration maxRequestTime, Duration maxResponseTime)
extends Record
Resource bounds for the JDK
HttpServer used by the health endpoints.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbacklog()Returns the value of thebacklogrecord component.static HealthCheckServer.Configdefaults()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 themaxConcurrentRequestsrecord component.Returns the value of themaxRequestTimerecord component.Returns the value of themaxResponseTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(int maxConcurrentRequests, int backlog, Duration maxRequestTime, Duration maxResponseTime) Creates an instance of aConfigrecord class.- Parameters:
maxConcurrentRequests- the value for themaxConcurrentRequestsrecord componentbacklog- the value for thebacklogrecord componentmaxRequestTime- the value for themaxRequestTimerecord componentmaxResponseTime- the value for themaxResponseTimerecord component
-
-
Method Details
-
defaults
-
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. -
maxConcurrentRequests
public int maxConcurrentRequests()Returns the value of themaxConcurrentRequestsrecord component.- Returns:
- the value of the
maxConcurrentRequestsrecord component
-
backlog
public int backlog()Returns the value of thebacklogrecord component.- Returns:
- the value of the
backlogrecord component
-
maxRequestTime
Returns the value of themaxRequestTimerecord component.- Returns:
- the value of the
maxRequestTimerecord component
-
maxResponseTime
Returns the value of themaxResponseTimerecord component.- Returns:
- the value of the
maxResponseTimerecord component
-