me.prettyprint.hector.api
Interface ClockResolution

All Superinterfaces:
Serializable
All Known Implementing Classes:
MicrosecondsClockResolution, MicrosecondsSyncClockResolution, MillisecondsClockResolution, SecondsClockResolution

public interface ClockResolution
extends Serializable

Clock interface to allow client define their own behavior for Clock Resolution.

Author:
Patricio Echague (pechague@gmail.com)
See Also:
SecondsClockResolution}, MillisecondsClockResolution}, MicrosecondsClockResolution}, MicrosecondsSyncClockResolution}

Field Summary
static String MICROSECONDS
          Provides a clock resolution with microseconds granularity.
static String MICROSECONDS_SYNC
          Provides a clock resolution with microseconds granularity and assuring a unique timestamp within and across threads.
static String MILLISECONDS
          Provides a clock resolution with milliseconds granularity.
static String SECONDS
          Provides a clock resolution with seconds granularity.
 
Method Summary
 long createClock()
          Creates a timestamp.
 

Field Detail

SECONDS

static final String SECONDS
Provides a clock resolution with seconds granularity.

See Also:
SecondsClockResolution}, Constant Field Values

MILLISECONDS

static final String MILLISECONDS
Provides a clock resolution with milliseconds granularity.

See Also:
MillisecondsClockResolution}, Constant Field Values

MICROSECONDS

static final String MICROSECONDS
Provides a clock resolution with microseconds granularity.

See Also:
MicrosecondsClockResolution}, Constant Field Values

MICROSECONDS_SYNC

static final String MICROSECONDS_SYNC
Provides a clock resolution with microseconds granularity and assuring a unique timestamp within and across threads.

See Also:
MicrosecondsSyncClockResolution}, Constant Field Values
Method Detail

createClock

long createClock()
Creates a timestamp.



Copyright © 2011. All Rights Reserved.