Record Class NettySettings

java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.NettySettings

public record NettySettings(Optional<Integer> workerThreadCount, Optional<Duration> shutdownQuietPeriod, Optional<Duration> shutdownTimeout, Optional<Duration> authenticatedIdleTimeout, Optional<Duration> unauthenticatedIdleTimeout) extends Record
  • Constructor Details

    • NettySettings

      public NettySettings(Optional<Integer> workerThreadCount, Optional<Duration> shutdownQuietPeriod, Optional<Duration> shutdownTimeout, Optional<Duration> authenticatedIdleTimeout, Optional<Duration> unauthenticatedIdleTimeout)
      Creates an instance of a NettySettings record class.
      Parameters:
      workerThreadCount - the value for the workerThreadCount record component
      shutdownQuietPeriod - the value for the shutdownQuietPeriod record component
      shutdownTimeout - the value for the shutdownTimeout record component
      authenticatedIdleTimeout - the value for the authenticatedIdleTimeout record component
      unauthenticatedIdleTimeout - the value for the unauthenticatedIdleTimeout record 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 deprecated shutdownQuietPeriodSeconds integer field, mapping it to shutdownQuietPeriod with a warning.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • workerThreadCount

      public Optional<Integer> workerThreadCount()
      Returns the value of the workerThreadCount record component.
      Returns:
      the value of the workerThreadCount record component
    • shutdownQuietPeriod

      public Optional<Duration> shutdownQuietPeriod()
      Returns the value of the shutdownQuietPeriod record component.
      Returns:
      the value of the shutdownQuietPeriod record component
    • shutdownTimeout

      public Optional<Duration> shutdownTimeout()
      Returns the value of the shutdownTimeout record component.
      Returns:
      the value of the shutdownTimeout record component
    • authenticatedIdleTimeout

      public Optional<Duration> authenticatedIdleTimeout()
      Returns the value of the authenticatedIdleTimeout record component.
      Returns:
      the value of the authenticatedIdleTimeout record component
    • unauthenticatedIdleTimeout

      public Optional<Duration> unauthenticatedIdleTimeout()
      Returns the value of the unauthenticatedIdleTimeout record component.
      Returns:
      the value of the unauthenticatedIdleTimeout record component