public class ThreadPoolBudget.Leased extends java.lang.Object implements ThreadPoolBudget.Lease
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
leasee |
private int |
threads |
Modifier | Constructor and Description |
---|---|
private |
Leased(java.lang.Object leasee,
int threads) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getThreads() |
public int getThreads()
getThreads
in interface ThreadPoolBudget.Lease
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable