-
-
Constructor Summary
Constructors
Constructor and Description |
PoolLocker(int size) |
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Field Detail
-
capacity
protected int capacity
-
running
protected int running
-
Method Detail
-
addTask
public void addTask()
-
getCapacity
public int getCapacity()
- Returns:
- the capacity in number of threads
-
getLoad
public int getLoad()
- Returns:
- the number of threads running
Copyright © 2014. All rights reserved.