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

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final int
    Limits concurrent collectors to keep smaller requests concurrent without unbounded spool files or worker writes.
    (package private) static final long
    Matches the quarkus.http.limits.max-body-size default when that limit is disabled.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteDevBodyLimits(long requestLimit, long aggregateLimit, int activeCollectorLimit)
    Creates an instance of a RemoteDevBodyLimits record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the activeCollectorLimit record component.
    long
    Returns the value of the aggregateLimit record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    (package private) 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.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the requestLimit record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT_REQUEST_LIMIT

      static final long DEFAULT_REQUEST_LIMIT
      Matches the quarkus.http.limits.max-body-size default when that limit is disabled.
      See Also:
    • DEFAULT_ACTIVE_COLLECTOR_LIMIT

      static final int DEFAULT_ACTIVE_COLLECTOR_LIMIT
      Limits 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 a RemoteDevBodyLimits record class.
      Parameters:
      requestLimit - the value for the requestLimit record component
      aggregateLimit - the value for the aggregateLimit record component
      activeCollectorLimit - the value for the activeCollectorLimit record 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • requestLimit

      public long requestLimit()
      Returns the value of the requestLimit record component.
      Returns:
      the value of the requestLimit record component
    • aggregateLimit

      public long aggregateLimit()
      Returns the value of the aggregateLimit record component.
      Returns:
      the value of the aggregateLimit record component
    • activeCollectorLimit

      public int activeCollectorLimit()
      Returns the value of the activeCollectorLimit record component.
      Returns:
      the value of the activeCollectorLimit record component