Class RemoteDevBodyAdmission

java.lang.Object
io.quarkus.vertx.http.runtime.devmode.RemoteDevBodyAdmission

final class RemoteDevBodyAdmission extends Object
Coordinates aggregate remote-dev request-body capacity across collectors.

A reservation starts at the declared content length, or at zero for a chunked request, and grows as chunks arrive. Releasing a reservation is idempotent so every terminal collector path can safely release it.

  • Constructor Details

  • Method Details

    • tryAcquire

      RemoteDevBodyAdmission.Reservation tryAcquire(long initialReservation)
      Reserves a collector slot and its initially known body size.
      Returns:
      the reservation, or null when the active-collector or aggregate-capacity limit is reached
    • tryReserve

      boolean tryReserve(RemoteDevBodyAdmission.Reservation reservation, long additionalBytes)
      Extends a chunked request reservation before accepting another chunk.
      Returns:
      false when accepting the chunk would exceed aggregate capacity
    • release

      void release(RemoteDevBodyAdmission.Reservation reservation)
      Releases a reservation once its spool has been cleaned up.
    • activeCollectors

      int activeCollectors()
    • reservedBytes

      long reservedBytes()