Package icu.easyj.core.clock.factory
Class AbstractRemotingClockFactory<K>
java.lang.Object
icu.easyj.core.clock.factory.AbstractRemotingClockFactory<K>
- Type Parameters:
K- 远端键类型
- All Implemented Interfaces:
IRemotingClockFactory<K>
public abstract class AbstractRemotingClockFactory<K>
extends Object
implements IRemotingClockFactory<K>
抽象远端时钟工厂
- Author:
- wangliang181230
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected无参构造函数protectedAbstractRemotingClockFactory(ConcurrentMap<K, IAutoRefreshTickClock> remotingClockMap) 有参构造函数 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icu.easyj.core.clock.factory.IRemotingClockFactory
createClock, currentTimeMicros, currentTimeMillis, currentTimeNanos, getRemotingTime, now
-
Constructor Details
-
AbstractRemotingClockFactory
protected AbstractRemotingClockFactory()无参构造函数 -
AbstractRemotingClockFactory
有参构造函数- Parameters:
remotingClockMap- 保存远端时钟的Map
-
-
Method Details
-
getClock
获取远端时钟- Specified by:
getClockin interfaceIRemotingClockFactory<K>- Parameters:
remotingKey- 远端健值- Returns:
- 时钟
-
destroyClock
销毁远端时钟- Specified by:
destroyClockin interfaceIRemotingClockFactory<K>- Parameters:
remotingKey- 远端键值
-