Package me.ahoo.cosid.machine
Interface ClockBackwardsSynchronizer
- All Known Implementing Classes:
DefaultClockBackwardsSynchronizer
@ThreadSafe
public interface ClockBackwardsSynchronizer
Clock Backwards Synchronizer.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
getBackwardsTimeStamp
(long lastTimestamp) void
sync
(long lastTimestamp) void
syncUninterruptibly
(long lastTimestamp)
-
Field Details
-
DEFAULT
-
-
Method Details
-
sync
-
syncUninterruptibly
- Throws:
ClockTooManyBackwardsException
-
getBackwardsTimeStamp
static long getBackwardsTimeStamp(long lastTimestamp)
-