Class ThreadPoolBudget.Leased

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object leasee  
      private int threads  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Leased​(java.lang.Object leasee, int threads)  
    • Method Summary

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

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

      • leasee

        private final java.lang.Object leasee
      • threads

        private final int threads
    • Constructor Detail

      • Leased

        private Leased​(java.lang.Object leasee,
                       int threads)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable