@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, redissonClient
logger
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.
|
shutdown
closeLock, finalize, getLock
public static final String NAME
public RedissonSemaphoreNamedLockFactory()
protected AdaptedSemaphoreNamedLock createLock(String name)
NamedLockFactorySupport
NamedLockSupport
for given name
, this method must never
return null
.createLock
in class NamedLockFactorySupport
protected void destroyLock(String name)
NamedLockFactorySupport
destroyLock
in class NamedLockFactorySupport
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.