T - the object type.public class ActiveObjectCounter<T>
extends java.lang.Object
| Constructor and Description |
|---|
ActiveObjectCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T object) |
boolean |
await(long timeout,
java.util.concurrent.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,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic int getCount()
public void reset()
public void deactivate()
public boolean isActive()