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