Class RemoteDevBodyAdmission
java.lang.Object
io.quarkus.vertx.http.runtime.devmode.RemoteDevBodyAdmission
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classThe aggregate capacity held by one collector until its spool is cleaned up. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int(package private) voidrelease(RemoteDevBodyAdmission.Reservation reservation) Releases a reservation once its spool has been cleaned up.(package private) long(package private) RemoteDevBodyAdmission.ReservationtryAcquire(long initialReservation) Reserves a collector slot and its initially known body size.(package private) booleantryReserve(RemoteDevBodyAdmission.Reservation reservation, long additionalBytes) Extends a chunked request reservation before accepting another chunk.
-
Constructor Details
-
RemoteDevBodyAdmission
RemoteDevBodyAdmission(RemoteDevBodyLimits limits)
-
-
Method Details
-
tryAcquire
Reserves a collector slot and its initially known body size.- Returns:
- the reservation, or
nullwhen the active-collector or aggregate-capacity limit is reached
-
tryReserve
Extends a chunked request reservation before accepting another chunk.- Returns:
falsewhen accepting the chunk would exceed aggregate capacity
-
release
Releases a reservation once its spool has been cleaned up. -
activeCollectors
int activeCollectors() -
reservedBytes
long reservedBytes()
-