Record Class RemoteDevBodyLimits
java.lang.Object
java.lang.Record
io.quarkus.vertx.http.runtime.devmode.RemoteDevBodyLimits
record RemoteDevBodyLimits(long requestLimit, long aggregateLimit, int activeCollectorLimit)
extends Record
Bounds remote-dev body collection independently of the normal router body handler.
The request limit follows quarkus.http.limits.max-body-size. When that general limit is disabled, remote
development retains the same 10 MiB default rather than accepting unauthenticated bodies without a bound. Aggregate
capacity is twice the per-request limit so a maximum-sized request can be processed while another is collected. The
collector limit still bounds concurrent spool files and worker writes for smaller requests.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intLimits concurrent collectors to keep smaller requests concurrent without unbounded spool files or worker writes.(package private) static final longMatches thequarkus.http.limits.max-body-sizedefault when that limit is disabled. -
Constructor Summary
ConstructorsConstructorDescriptionRemoteDevBodyLimits(long requestLimit, long aggregateLimit, int activeCollectorLimit) Creates an instance of aRemoteDevBodyLimitsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveCollectorLimitrecord component.longReturns the value of theaggregateLimitrecord component.final booleanIndicates whether some other object is "equal to" this one.(package private) static RemoteDevBodyLimitsDerives remote-dev limits from the configured HTTP body limit or the finite fallback when it is disabled.final inthashCode()Returns a hash code value for this object.longReturns the value of therequestLimitrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_REQUEST_LIMIT
static final long DEFAULT_REQUEST_LIMITMatches thequarkus.http.limits.max-body-sizedefault when that limit is disabled.- See Also:
-
DEFAULT_ACTIVE_COLLECTOR_LIMIT
static final int DEFAULT_ACTIVE_COLLECTOR_LIMITLimits concurrent collectors to keep smaller requests concurrent without unbounded spool files or worker writes.- See Also:
-
-
Constructor Details
-
RemoteDevBodyLimits
RemoteDevBodyLimits(long requestLimit, long aggregateLimit, int activeCollectorLimit) Creates an instance of aRemoteDevBodyLimitsrecord class.- Parameters:
requestLimit- the value for therequestLimitrecord componentaggregateLimit- the value for theaggregateLimitrecord componentactiveCollectorLimit- the value for theactiveCollectorLimitrecord component
-
-
Method Details
-
from
static RemoteDevBodyLimits from(Optional<io.quarkus.runtime.configuration.MemorySize> configuredLimit) Derives remote-dev limits from the configured HTTP body limit or the finite fallback when it is disabled. -
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 '=='. -
requestLimit
public long requestLimit()Returns the value of therequestLimitrecord component.- Returns:
- the value of the
requestLimitrecord component
-
aggregateLimit
public long aggregateLimit()Returns the value of theaggregateLimitrecord component.- Returns:
- the value of the
aggregateLimitrecord component
-
activeCollectorLimit
public int activeCollectorLimit()Returns the value of theactiveCollectorLimitrecord component.- Returns:
- the value of the
activeCollectorLimitrecord component
-