Class MemoryAwareThreadPoolExecutor.MemoryAwareRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    MemoryAwareThreadPoolExecutor

    private static final class MemoryAwareThreadPoolExecutor.MemoryAwareRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int estimatedSize  
      (package private) java.lang.Runnable task  
    • Constructor Summary

      Constructors 
      Constructor Description
      MemoryAwareRunnable​(java.lang.Runnable task)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

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

      • task

        final java.lang.Runnable task
      • estimatedSize

        int estimatedSize
    • Constructor Detail

      • MemoryAwareRunnable

        MemoryAwareRunnable​(java.lang.Runnable task)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable