Package io.github.mfvanek.pg.utils
Class ClockHolder
java.lang.Object
io.github.mfvanek.pg.utils.ClockHolder
Utility class to work with
Clock
.- Since:
- 0.6.0
-
Method Summary
-
Method Details
-
clock
-
setClock
Atomically sets theCLOCK_REFERENCE
tonewClock
and returns the old value.- Parameters:
newClock
- the new value- Returns:
- the previous value of clock
-