public static class SimpleNonBlockingSemaphore.Factory extends java.lang.Object implements NonBlockingSemaphore.Factory
SimpleNonBlockingSemaphore.| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
NonBlockingSemaphore |
createSemaphore(java.lang.String name,
int maxResources)
Creates a semaphore with the specified name and resources.
|
public NonBlockingSemaphore createSemaphore(java.lang.String name, int maxResources)
NonBlockingSemaphore.FactorycreateSemaphore in interface NonBlockingSemaphore.Factoryname - the name of the semaphoremaxResources - the maximum number of resource