com.hazelcast.cluster.impl
Class ClusterClockImpl

java.lang.Object
  extended by com.hazelcast.cluster.impl.ClusterClockImpl
All Implemented Interfaces:
ClusterClock

public class ClusterClockImpl
extends Object
implements ClusterClock


Constructor Summary
ClusterClockImpl(ILogger logger)
           
 
Method Summary
 long getClusterTime()
          Returns the cluster-time in milliseconds.
 long getClusterTimeDiff()
           
 void setMasterTime(long masterTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterClockImpl

public ClusterClockImpl(ILogger logger)
Method Detail

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.