Record Class BodySizeLimits
java.lang.Object
java.lang.Record
io.micronaut.http.server.netty.body.BodySizeLimits
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBodySizeLimits
(long maxBodySize, long maxBufferSize) Creates an instance of aBodySizeLimits
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.long
Returns the value of themaxBodySize
record component.long
Returns the value of themaxBufferSize
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
UNLIMITED
-
-
Constructor Details
-
BodySizeLimits
public BodySizeLimits(long maxBodySize, long maxBufferSize) Creates an instance of aBodySizeLimits
record class.- Parameters:
maxBodySize
- the value for themaxBodySize
record componentmaxBufferSize
- the value for themaxBufferSize
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 '=='. -
maxBodySize
public long maxBodySize()Returns the value of themaxBodySize
record component.- Returns:
- the value of the
maxBodySize
record component
-
maxBufferSize
public long maxBufferSize()Returns the value of themaxBufferSize
record component.- Returns:
- the value of the
maxBufferSize
record component
-