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, waitMethods 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:DistributedServiceReturns general-purpose distributed-aware lock.- Specified by:
getLockin interfaceDistributedService- Parameters:
name- name of the lock- Returns:
- distributed-aware reentrant lock
-
getAtomicLong
Description copied from interface:DistributedServiceReturns distributed-aware atomic long.- Specified by:
getAtomicLongin interfaceDistributedService- Parameters:
name-- Returns:
- distributed-aware atomic long
-