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