org.apache.commons.id.uuid.clock
Class SystemClockImpl
java.lang.Object
org.apache.commons.id.uuid.clock.SystemClockImpl
- All Implemented Interfaces:
- Clock
public final class SystemClockImpl
- extends 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 00:57:26 -0800 (Wed, 29 Nov 2006) $
- Author:
- Commons-Id Team
- See Also:
Clock
|
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 |
SystemClockImpl
public SystemClockImpl()
Public constructor.
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 © 2013 LittleShoot. All Rights Reserved.