Package org.apache.druid.frame.channel
Class ByteTracker
java.lang.Object
org.apache.druid.frame.channel.ByteTracker
Tracks the byte usage with an upper bound bytes limit. Reservation of bytes beyond limit throws
ResourceLimitExceededException.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrelease(long byteCount) voidreserve(long byteCount) static ByteTracker
-
Constructor Details
-
ByteTracker
public ByteTracker(long maxBytes)
-
-
Method Details
-
reserve
- Throws:
ResourceLimitExceededException
-
release
public void release(long byteCount) -
unboundedTracker
-