public class ClusterClockImpl extends Object implements ClusterClock
Constructor and Description |
---|
ClusterClockImpl(ILogger logger) |
Modifier and Type | Method and Description |
---|---|
long |
getClusterStartTime() |
long |
getClusterTime()
Returns the cluster-time in milliseconds.
|
long |
getClusterTimeDiff() |
long |
getClusterUpTime()
Returns the cluster up-time in milliseconds.
|
void |
setClusterStartTime(long startTime) |
void |
setMasterTime(long masterTime) |
public ClusterClockImpl(ILogger logger)
public long getClusterTime()
ClusterClock
System.nanoTime()
.getClusterTime
in interface ClusterClock
public void setMasterTime(long masterTime)
public long getClusterTimeDiff()
getClusterTimeDiff
in interface ClusterClock
public long getClusterUpTime()
ClusterClock
getClusterUpTime
in interface ClusterClock
public void setClusterStartTime(long startTime)
public long getClusterStartTime()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.