Package io.micronaut.http.body.stream
Record Class BodySizeLimits
java.lang.Object
java.lang.Record
io.micronaut.http.body.stream.BodySizeLimits
- Record Components:
maxBodySize- max body sizemaxBufferSize- max buffer size
Body size limits.
-
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
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 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
-