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()
ClusterClockSystem.nanoTime().getClusterTime in interface ClusterClockpublic void setMasterTime(long masterTime)
public long getClusterTimeDiff()
getClusterTimeDiff in interface ClusterClockpublic long getClusterUpTime()
ClusterClockgetClusterUpTime in interface ClusterClockpublic void setClusterStartTime(long startTime)
public long getClusterStartTime()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.