Class MultiDataCenterCounterFinderImpl
Object
com.liferay.counter.service.persistence.impl.CounterFinderImpl
com.liferay.counter.service.persistence.impl.MultiDataCenterCounterFinderImpl
- All Implemented Interfaces:
com.liferay.counter.kernel.service.persistence.CounterFinder
,com.liferay.portal.kernel.cache.CacheRegistryItem
- Author:
- Michael C. Han, Shuyang Zhou
-
Constructor Summary
ConstructorsConstructorDescriptionMultiDataCenterCounterFinderImpl
(int dataCenterCount, int dataCenterDeploymentId) -
Method Summary
Modifier and TypeMethodDescriptionprotected static int
getBits
(int value) protected long
getMultiClusterSafeValue
(long value) long
Methods inherited from class com.liferay.counter.service.persistence.impl.CounterFinderImpl
closeSession, createCounterRegister, createCounterRegister, getConnection, getCounterRegister, getCurrentId, getNames, getRangeSize, getRegistryName, increment, increment, invalidate, processException, rename, reset, reset, setDataSource, setSessionFactory
-
Constructor Details
-
MultiDataCenterCounterFinderImpl
public MultiDataCenterCounterFinderImpl(int dataCenterCount, int dataCenterDeploymentId)
-
-
Method Details
-
increment
- Specified by:
increment
in interfacecom.liferay.counter.kernel.service.persistence.CounterFinder
- Overrides:
increment
in classCounterFinderImpl
-
getBits
protected static int getBits(int value) -
getMultiClusterSafeValue
protected long getMultiClusterSafeValue(long value)
-