com.hazelcast.util
public final class Clock extends Object
com.hazelcast.clock.offset
Modifier and Type | Class and Description |
---|---|
static class |
Clock.ClockImpl
Clock abstraction to be able to simulate different clocks
without changing actual system time.
|
Modifier and Type | Field and Description |
---|---|
static String |
HAZELCAST_CLOCK_IMPL
Classname of a
Clock.ClockImpl implementation. |
static String |
HAZELCAST_CLOCK_OFFSET
Clock offset property in milliseconds.
|
public static final String HAZELCAST_CLOCK_OFFSET
currentTimeMillis()
will return a shifted System.currentTimeMillis()
time by the given offset value.public static final String HAZELCAST_CLOCK_IMPL
Clock.ClockImpl
implementation.
When this property is set, currentTimeMillis()
will call the currentTimeMillis()
method of given ClockImpl
.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.