Package org.apache.tika.server.core
Class RequestBodyBudget
java.lang.Object
org.apache.tika.server.core.RequestBodyBudget
Caps the request-body bytes all in-flight requests hold at once (
maxInFlightRequestBytes).
Bytes are charged as they are read, not as declared, so a client that sends slowly holds only
what it has sent. Each request charges through its own RequestBodyBudget.Reservation, which is the only
way the total changes; it is released exactly once, when Jetty completes the request.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RequestBodyBudget
public RequestBodyBudget(long maxBytes) - Parameters:
maxBytes- the most request-body bytes in flight at once; must be positive
-
-
Method Details
-
getMaxBytes
public long getMaxBytes() -
getInFlightBytes
public long getInFlightBytes()
-