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
ConstructorDescriptionApacheServletConfiguration
(int inputBufferSize, int outputBufferSize, boolean useInheritedChannel) Creates an instance of aApacheServletConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theinputBufferSize
record component.int
Returns the value of theoutputBufferSize
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theuseInheritedChannel
record 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 aApacheServletConfiguration
record class.- Parameters:
inputBufferSize
- the value for theinputBufferSize
record componentoutputBufferSize
- the value for theoutputBufferSize
record componentuseInheritedChannel
- the value for theuseInheritedChannel
record 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 theinputBufferSize
record component.- Returns:
- the value of the
inputBufferSize
record component
-
outputBufferSize
@Bindable(defaultValue="8192") public int outputBufferSize()Returns the value of theoutputBufferSize
record component.- Returns:
- the value of the
outputBufferSize
record component
-
useInheritedChannel
@Bindable(defaultValue="true") public boolean useInheritedChannel()Returns the value of theuseInheritedChannel
record component.- Returns:
- the value of the
useInheritedChannel
record component
-