Class MemoryAwareThreadPoolExecutor.Limiter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long counter  
      (package private) long limit  
      private int waiters  
    • Constructor Summary

      Constructors 
      Constructor Description
      Limiter​(long limit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void decrease​(long amount)  
      (package private) void increase​(long amount)  
      • Methods inherited from class java.lang.Object

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

      • limit

        final long limit
      • counter

        private long counter
      • waiters

        private int waiters
    • Constructor Detail

      • Limiter

        Limiter​(long limit)
    • Method Detail

      • increase

        void increase​(long amount)
      • decrease

        void decrease​(long amount)