Class RedissonNamedLockFactorySupport
java.lang.Object
org.eclipse.aether.named.support.NamedLockFactorySupport
org.eclipse.aether.named.redisson.RedissonNamedLockFactorySupport
- All Implemented Interfaces:
NamedLockFactory
- Direct Known Subclasses:
RedissonReadWriteLockNamedLockFactory, RedissonSemaphoreNamedLockFactory
Support class for factories using
RedissonClient.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringprotected final org.redisson.api.RedissonClientstatic final StringWhether a plaintextredis://address pointing at a non-loopback host is allowed.static final StringPath to a Redisson configuration file in YAML format.static final StringAddress of the Redis instance.Fields inherited from class NamedLockFactorySupport
logger, SYSTEM_PROP_DIAGNOSTIC_ENABLED -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class NamedLockFactorySupport
closeLock, createLock, destroyLock, doGetLock, getLock, getLockAndRefTrack, isDiagnosticEnabled, onFailure, shutdownMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedLockFactory
getLock
-
Field Details
-
NAME_PREFIX
- See Also:
-
SYSTEM_PROP_CONFIG_FILE
Path to a Redisson configuration file in YAML format. Read official documentation for details.- Since:
- 1.7.0
- See Also:
- Sourced from:
System.getProperty(String, String)- Value type:
String
-
SYSTEM_PROP_REDIS_ADDRESS
Address of the Redis instance. Optional.- Since:
- 2.0.0
- See Also:
- Sourced from:
System.getProperty(String, String)- Value type:
String- Default value:
DEFAULT_REDIS_ADDRESS
-
DEFAULT_REDIS_ADDRESS
- See Also:
-
SYSTEM_PROP_ALLOW_INSECURE_ADDRESS
Whether a plaintextredis://address pointing at a non-loopback host is allowed. Such a connection is unencrypted and unauthenticated at the transport, so a tampered, spoofed, or on-path-modified Redis can grant conflicting locks and corrupt the shared local repository the locks protect. Disabled by default; prefer arediss://(TLS) address, or a Redisson configuration file with authentication, for anything cross-host.- Since:
- 2.0.23
- See Also:
- Sourced from:
System.getProperty(String, String)- Value type:
Boolean- Default value:
- false
-
redissonClient
-
-
Constructor Details
-
RedissonNamedLockFactorySupport
public RedissonNamedLockFactorySupport()
-
-
Method Details
-
doShutdown
- Overrides:
doShutdownin classNamedLockFactorySupport
-