Record Class ApacheServletConfiguration

java.lang.Object
java.lang.Record
io.micronaut.http.poja.apache.ApacheServletConfiguration
Record Components:
inputBufferSize - The size of the buffer that is used to read and parse the HTTP request (in bytes). Default value is 8192 (8Kb).
outputBufferSize - The size of the buffer that is used to write the HTTP response (in bytes). Default value is 8192 (8Kb).
useInheritedChannel - When true, the inherited channel will be used by if present. Otherwise, STDIN and STDOUT will be used.

@ConfigurationProperties("poja.apache") public record ApacheServletConfiguration(int inputBufferSize, int outputBufferSize, boolean useInheritedChannel) extends Record
Configuration specific to the Apache POJA serverless application.
Since:
4.10.0
Author:
Andriy Dmytruk
  • Constructor Details

    • ApacheServletConfiguration

      public ApacheServletConfiguration(@Bindable(defaultValue="8192") int inputBufferSize, @Bindable(defaultValue="8192") int outputBufferSize, @Bindable(defaultValue="true") boolean useInheritedChannel)
      Creates an instance of a ApacheServletConfiguration record class.
      Parameters:
      inputBufferSize - the value for the inputBufferSize record component
      outputBufferSize - the value for the outputBufferSize record component
      useInheritedChannel - the value for the useInheritedChannel record component
  • 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. All components in this record class are compared with '=='.
      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.
    • inputBufferSize

      @Bindable(defaultValue="8192") public int inputBufferSize()
      Returns the value of the inputBufferSize record component.
      Returns:
      the value of the inputBufferSize record component
    • outputBufferSize

      @Bindable(defaultValue="8192") public int outputBufferSize()
      Returns the value of the outputBufferSize record component.
      Returns:
      the value of the outputBufferSize record component
    • useInheritedChannel

      @Bindable(defaultValue="true") public boolean useInheritedChannel()
      Returns the value of the useInheritedChannel record component.
      Returns:
      the value of the useInheritedChannel record component