public interface SemaphoreManager
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
int size,
int expiration)
Add a new global semaphore.
|
java.util.Vector |
list()
List active semaphores.
|
void |
remove(java.lang.String name)
Remove a global semaphore.
|
java.util.Vector list()
throws java.lang.Exception
java.lang.Exceptionvoid add(java.lang.String name,
int size,
int expiration)
throws java.lang.Exception
name - the name of the semaphoresize - the count of the semaphore tokensexpiration - the expiration time for the tokensjava.lang.Exceptionvoid remove(java.lang.String name)
throws java.lang.Exception
name - the name of the semaphorejava.lang.Exception