Package io.grpc.internal
Class RetriableStream.ChannelBufferMeter
- java.lang.Object
-
- io.grpc.internal.RetriableStream.ChannelBufferMeter
-
- Enclosing class:
- RetriableStream<ReqT>
static final class RetriableStream.ChannelBufferMeter extends java.lang.Object
Used to keep track of the total amount of memory used to buffer retryable or hedged RPCs for the Channel. There should be a single instance of it for each channel.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicLong
bufferUsed
-
Constructor Summary
Constructors Constructor Description ChannelBufferMeter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) long
addAndGet(long newBytesUsed)
-