Package io.kroxylicious.proxy.config
Record Class NettySettings
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.NettySettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthenticatedIdleTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.static NettySettingsfromJson(Optional<Integer> workerThreadCount, Optional<Duration> shutdownQuietPeriod, Optional<Duration> shutdownTimeout, Optional<Duration> authenticatedIdleTimeout, Optional<Duration> unauthenticatedIdleTimeout, Optional<Integer> shutdownQuietPeriodSeconds) Jackson factory that also accepts the deprecatedshutdownQuietPeriodSecondsinteger field, mapping it toshutdownQuietPeriodwith a warning.final inthashCode()Returns a hash code value for this object.Returns the value of theshutdownQuietPeriodrecord component.Returns the value of theshutdownTimeoutrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunauthenticatedIdleTimeoutrecord component.Returns the value of theworkerThreadCountrecord component.
-
Constructor Details
-
NettySettings
public NettySettings(Optional<Integer> workerThreadCount, Optional<Duration> shutdownQuietPeriod, Optional<Duration> shutdownTimeout, Optional<Duration> authenticatedIdleTimeout, Optional<Duration> unauthenticatedIdleTimeout) Creates an instance of aNettySettingsrecord class.- Parameters:
workerThreadCount- the value for theworkerThreadCountrecord componentshutdownQuietPeriod- the value for theshutdownQuietPeriodrecord componentshutdownTimeout- the value for theshutdownTimeoutrecord componentauthenticatedIdleTimeout- the value for theauthenticatedIdleTimeoutrecord componentunauthenticatedIdleTimeout- the value for theunauthenticatedIdleTimeoutrecord component
-
-
Method Details
-
fromJson
public static NettySettings fromJson(Optional<Integer> workerThreadCount, Optional<Duration> shutdownQuietPeriod, Optional<Duration> shutdownTimeout, Optional<Duration> authenticatedIdleTimeout, Optional<Duration> unauthenticatedIdleTimeout, @Deprecated(since="0.20.0",forRemoval=true) Optional<Integer> shutdownQuietPeriodSeconds) Jackson factory that also accepts the deprecatedshutdownQuietPeriodSecondsinteger field, mapping it toshutdownQuietPeriodwith a warning. -
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
workerThreadCount
Returns the value of theworkerThreadCountrecord component.- Returns:
- the value of the
workerThreadCountrecord component
-
shutdownQuietPeriod
Returns the value of theshutdownQuietPeriodrecord component.- Returns:
- the value of the
shutdownQuietPeriodrecord component
-
shutdownTimeout
Returns the value of theshutdownTimeoutrecord component.- Returns:
- the value of the
shutdownTimeoutrecord component
-
authenticatedIdleTimeout
Returns the value of theauthenticatedIdleTimeoutrecord component.- Returns:
- the value of the
authenticatedIdleTimeoutrecord component
-
unauthenticatedIdleTimeout
Returns the value of theunauthenticatedIdleTimeoutrecord component.- Returns:
- the value of the
unauthenticatedIdleTimeoutrecord component
-