public final class Clock
extends Object
Abstracts the system clock to simulate different clocks without changing the actual system time.
Can be used to simulate different time zones or to control timing related behavior in Hazelcast.
The time offset can be configured with the property .
The clock implementation can be configured with the property .
WARNING: This class is a singleton.
Once the class has been initialized, the clock implementation or offset cannot be changed.
To use this class properly in unit or integration tests, please have a look at ClockTest
.