Package io.micronaut.http.poja.apache
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 Summary
ConstructorsConstructorDescriptionApacheServletConfiguration(int inputBufferSize, int outputBufferSize, boolean useInheritedChannel) Creates an instance of aApacheServletConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinputBufferSizerecord component.intReturns the value of theoutputBufferSizerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseInheritedChannelrecord component.
-
Constructor Details
-
ApacheServletConfiguration
public ApacheServletConfiguration(@Bindable(defaultValue="8192") int inputBufferSize, @Bindable(defaultValue="8192") int outputBufferSize, @Bindable(defaultValue="true") boolean useInheritedChannel) Creates an instance of aApacheServletConfigurationrecord class.- Parameters:
inputBufferSize- the value for theinputBufferSizerecord componentoutputBufferSize- the value for theoutputBufferSizerecord componentuseInheritedChannel- the value for theuseInheritedChannelrecord component
-
-
Method Details
-
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 with '=='. -
inputBufferSize
@Bindable(defaultValue="8192") public int inputBufferSize()Returns the value of theinputBufferSizerecord component.- Returns:
- the value of the
inputBufferSizerecord component
-
outputBufferSize
@Bindable(defaultValue="8192") public int outputBufferSize()Returns the value of theoutputBufferSizerecord component.- Returns:
- the value of the
outputBufferSizerecord component
-
useInheritedChannel
@Bindable(defaultValue="true") public boolean useInheritedChannel()Returns the value of theuseInheritedChannelrecord component.- Returns:
- the value of the
useInheritedChannelrecord component
-