@Singleton @Named(value="semaphore-redisson") public class RedissonSemaphoreNamedLockFactory extends RedissonNamedLockFactorySupport
RedissonSemaphoreNamedLockFactory using Redisson and RSemaphore.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
NAME_PREFIX, redissonClientlogger| Constructor and Description |
|---|
RedissonSemaphoreNamedLockFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected AdaptedSemaphoreNamedLock |
createLock(String name)
Implementations shall create and return
NamedLockSupport for given name, this method must never
return null. |
protected void |
destroyLock(String name)
Implementation may override this (empty) method to perform some sort of implementation specific cleanup for
given lock name.
|
shutdowncloseLock, finalize, getLockpublic static final String NAME
public RedissonSemaphoreNamedLockFactory()
protected AdaptedSemaphoreNamedLock createLock(String name)
NamedLockFactorySupportNamedLockSupport for given name, this method must never
return null.createLock in class NamedLockFactorySupportprotected void destroyLock(String name)
NamedLockFactorySupportdestroyLock in class NamedLockFactorySupportCopyright © 2010–2022 The Apache Software Foundation. All rights reserved.