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