K
- key typepublic interface SemaphoreKeeper<K>
Modifier and Type | Method and Description |
---|---|
void |
releaseGuard(Semaphore guard)
Unlock and release guard.
|
Semaphore |
summonGuard(K key)
Create or load semaphore for key from cache.
|
Semaphore |
summonGuardAndAcquire(K key)
Get guard and lock for key.
|
Semaphore summonGuard(@Nonnull K key)
key
- semaphore identifierSemaphore summonGuardAndAcquire(@Nonnull K key)
key
- for which guard should be created and acquiredCopyright © 2018 OpenDaylight. All rights reserved.