Package org.eclipse.jetty.util.thread
Class ThreadPoolBudget.Leased
- java.lang.Object
-
- org.eclipse.jetty.util.thread.ThreadPoolBudget.Leased
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,ThreadPoolBudget.Lease
- Enclosing class:
- ThreadPoolBudget
public class ThreadPoolBudget.Leased extends java.lang.Object implements ThreadPoolBudget.Lease
An allocation of threads
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getThreads()
-
-
-
Method Detail
-
getThreads
public int getThreads()
- Specified by:
getThreads
in interfaceThreadPoolBudget.Lease
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-