org.apache.commons.id.uuid.clock
Class SystemClockImpl

java.lang.Object
  extended by org.apache.commons.id.uuid.clock.SystemClockImpl
All Implemented Interfaces:
Clock

public final class SystemClockImpl
extends java.lang.Object
implements Clock

SystemClockImpl provides a timing mechanism for returning the current time in 100-nano second intervals since 00:00:00.00, 15 October 1582.

Version:
$Revision: 480488 $ $Date: 2006-11-29 08:57:26 +0000 (Wed, 29 Nov 2006) $
Author:
Commons-Id Team
See Also:
Clock

Field Summary
 
Fields inherited from interface org.apache.commons.id.uuid.clock.Clock
DEFAULT_CLOCK_IMPL, GREGORIAN_CHANGE_OFFSET, INTERVALS_PER_MILLI
 
Constructor Summary
SystemClockImpl()
          Public constructor.
 
Method Summary
 long getUUIDTime()
          Returns the current time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemClockImpl

public SystemClockImpl()

Public constructor.

Method Detail

getUUIDTime

public long getUUIDTime()
                 throws OverClockedException
Description copied from interface: Clock

Returns the current time.

Specified by:
getUUIDTime in interface Clock
Returns:
the current time in 100-nano second intervals since 00:00:00.00, 15 October 1582 UTC.
Throws:
OverClockedException - an Exception raised if the number of calls in a system time interval exceeds the number of 100-nanosecond intervals allowed.
See Also:
Clock.getUUIDTime()


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.