Record Class BodySizeLimits
java.lang.Object
java.lang.Record
io.micronaut.http.body.stream.BodySizeLimits
- Record Components:
maxBodySize- max body sizemaxBufferSize- max buffer size
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBodySizeLimits(long maxBodySize, long maxBufferSize) Creates an instance of aBodySizeLimitsrecord 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.longReturns the value of themaxBodySizerecord component.longReturns the value of themaxBufferSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
UNLIMITED
-
-
Constructor Details
-
BodySizeLimits
public BodySizeLimits(long maxBodySize, long maxBufferSize) Creates an instance of aBodySizeLimitsrecord class.- Parameters:
maxBodySize- the value for themaxBodySizerecord componentmaxBufferSize- the value for themaxBufferSizerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
maxBodySize
public long maxBodySize()Returns the value of themaxBodySizerecord component.- Returns:
- the value of the
maxBodySizerecord component
-
maxBufferSize
public long maxBufferSize()Returns the value of themaxBufferSizerecord component.- Returns:
- the value of the
maxBufferSizerecord component
-