T
- the object type.public class ActiveObjectCounter<T> extends Object
Constructor and Description |
---|
ActiveObjectCounter() |
Modifier and Type | Method and Description |
---|---|
void |
add(T object) |
boolean |
await(long timeout,
TimeUnit timeUnit) |
void |
deactivate() |
int |
getCount() |
boolean |
isActive() |
void |
release(T object) |
void |
reset() |
public void add(T object)
public void release(T object)
public boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException
InterruptedException
public int getCount()
public void reset()
public void deactivate()
public boolean isActive()