com.hazelcast.cluster.impl
Class ClusterClockImpl
java.lang.Object
com.hazelcast.cluster.impl.ClusterClockImpl
- All Implemented Interfaces:
- ClusterClock
public class ClusterClockImpl
- extends Object
- implements ClusterClock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterClockImpl
public ClusterClockImpl(ILogger logger)
getClusterTime
public long getClusterTime()
- Description copied from interface:
ClusterClock
- Returns the cluster-time in milliseconds.
The cluster-time measures elapsed time since the cluster was created. Comparable to the
System.nanoTime()
.
- Specified by:
getClusterTime
in interface ClusterClock
- Returns:
- the cluster-time (elapsed milliseconds since the cluster was created).
setMasterTime
public void setMasterTime(long masterTime)
getClusterTimeDiff
public long getClusterTimeDiff()
- Specified by:
getClusterTimeDiff
in interface ClusterClock
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.