Class RedissonSemaphoreNamedLockFactory
java.lang.Object
org.eclipse.aether.named.support.NamedLockFactorySupport
org.eclipse.aether.named.redisson.RedissonNamedLockFactorySupport
org.eclipse.aether.named.redisson.RedissonSemaphoreNamedLockFactory
- All Implemented Interfaces:
NamedLockFactory
@Singleton
@Named("semaphore-redisson")
public class RedissonSemaphoreNamedLockFactory
extends RedissonNamedLockFactorySupport
Provider of
RedissonSemaphoreNamedLockFactory
using Redisson and RSemaphore
.-
Field Summary
Fields inherited from class org.eclipse.aether.named.redisson.RedissonNamedLockFactorySupport
NAME_PREFIX, redissonClient, SYSTEM_PROP_CONFIG_FILE
Fields inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport
logger, SYSTEM_PROP_DIAGNOSTIC_ENABLED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AdaptedSemaphoreNamedLock
createLock
(String name) Implementations shall create and returnNamedLockSupport
for givenname
, this method must never returnnull
.protected void
destroyLock
(String name) Implementation may override this (empty) method to perform some sort of implementation specific cleanup for given lock name.Methods inherited from class org.eclipse.aether.named.redisson.RedissonNamedLockFactorySupport
shutdown
Methods inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport
closeLock, getLock, isDiagnosticEnabled, onFailure
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
RedissonSemaphoreNamedLockFactory
public RedissonSemaphoreNamedLockFactory()
-
-
Method Details
-
createLock
Description copied from class:NamedLockFactorySupport
Implementations shall create and returnNamedLockSupport
for givenname
, this method must never returnnull
.- Specified by:
createLock
in classNamedLockFactorySupport
-
destroyLock
Description copied from class:NamedLockFactorySupport
Implementation may override this (empty) method to perform some sort of implementation specific cleanup for given lock name. Invoked when reference count for given name drops to zero and named lock was removed.- Overrides:
destroyLock
in classNamedLockFactorySupport
-