me.prettyprint.cassandra.service.clock
Class MillisecondsClockResolution

java.lang.Object
  extended by me.prettyprint.cassandra.service.clock.AbstractClockResolution
      extended by me.prettyprint.cassandra.service.clock.MillisecondsClockResolution
All Implemented Interfaces:
Serializable, ClockResolution

public class MillisecondsClockResolution
extends AbstractClockResolution
implements ClockResolution

Milliseconds Resolution used to create clocks.

Author:
Patricio Echague (pechague@gmail.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface me.prettyprint.hector.api.ClockResolution
MICROSECONDS, MICROSECONDS_SYNC, MILLISECONDS, SECONDS
 
Constructor Summary
MillisecondsClockResolution()
           
 
Method Summary
 long createClock()
          Creates a timestamp.
 
Methods inherited from class me.prettyprint.cassandra.service.clock.AbstractClockResolution
getSystemMilliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MillisecondsClockResolution

public MillisecondsClockResolution()
Method Detail

createClock

public long createClock()
Description copied from interface: ClockResolution
Creates a timestamp.

Specified by:
createClock in interface ClockResolution


Copyright © 2011. All Rights Reserved.