Package com.axelor.cache.redisson
Class RedissonDistributedService
java.lang.Object
com.axelor.cache.redisson.RedissonDistributedService
- All Implemented Interfaces:
DistributedService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAtomicLong
(String name) Returns distributed-aware atomic long.Returns general-purpose distributed-aware lock.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axelor.cache.DistributedService
getLockIfDistributed
-
Field Details
-
LOCK_PREFIX
- See Also:
-
ATOMIC_PREFIX
- See Also:
-
-
Constructor Details
-
RedissonDistributedService
public RedissonDistributedService()
-
-
Method Details
-
getLock
Description copied from interface:DistributedService
Returns general-purpose distributed-aware lock.- Specified by:
getLock
in interfaceDistributedService
- Parameters:
name
- name of the lock- Returns:
- distributed-aware reentrant lock
-
getAtomicLong
Description copied from interface:DistributedService
Returns distributed-aware atomic long.- Specified by:
getAtomicLong
in interfaceDistributedService
- Parameters:
name
-- Returns:
- distributed-aware atomic long
-