K - 远端键类型public interface IRemotingClockFactory<K>
IClock,
ITickClock,
TickClock| 限定符和类型 | 方法和说明 |
|---|---|
ITickClock |
createClock(K remotingKey)
创建远端时钟
|
default long |
currentTimeMicros(K remotingKey)
远端的当前微秒数
|
default long |
currentTimeMillis(K remotingKey)
远端的当前毫秒数
|
default long |
currentTimeNanos(K remotingKey)
远端的当前纳秒数
注意:值格式与 System.nanoTime() 并不相同 |
ITickClock |
getClock(K remotingKey)
获取远端时钟
|
default Date |
now(K remotingKey)
远端的当前时间
|
ITickClock |
refreshClock(K remotingKey)
刷新远端时钟并返回新时钟(新时钟实例可以与原来时钟的实例相同,也可以不同)
|
@NonNull ITickClock createClock(@NonNull K remotingKey)
remotingKey - 远端键值@NonNull ITickClock getClock(@NonNull K remotingKey)
remotingKey - 远端健值@NonNull ITickClock refreshClock(@NonNull K remotingKey)
remotingKey - 远端键值default long currentTimeMillis(@NonNull
K remotingKey)
remotingKey - 远端键值default long currentTimeMicros(@NonNull
K remotingKey)
remotingKey - 远端键值default long currentTimeNanos(@NonNull
K remotingKey)
System.nanoTime() 并不相同remotingKey - 远端键值Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.