Class 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  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long addAndGet​(long newBytesUsed)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bufferUsed

        private final java.util.concurrent.atomic.AtomicLong bufferUsed
    • Constructor Detail

      • ChannelBufferMeter

        ChannelBufferMeter()
    • Method Detail

      • addAndGet

        long addAndGet​(long newBytesUsed)