Package tyrex.services

Generic Services

Version:
$Revision: 1.2 $Date: 2001/03/13 03:14:57 $
Author:
Assaf Arkin

Clock and UUID

Clock provides an efficient mechanism for obtaining the current time and date.

See: Description

Package tyrex.services Description:

Generic Services

Version:
$Revision: 1.2 $Date: 2001/03/13 03:14:57 $
Author:
Assaf Arkin

Clock and UUID

Clock provides an efficient mechanism for obtaining the current time and date. Uses a background thread to automatically increment an internal clock and periodically synchronize with the system clock. The method clock is more efficient than java.lang.System#currentTimeMillis currentTimeMillis and also allows the clock to be artificially advanced for testing purposes.

UUID is a Universally Unique Identifier (UUID) generator. A UUID is an identifier that is unique across both space and time, with respect to the space of all UUIDs. A UUID can be used for objects with an extremely short lifetime, and to reliably identifying very persistent objects across a network. UUIDs are 128 bit values and encoded into 36 characters.

This generator produces time-based UUIDs based on the varient specified in an IETF draft from February 4, 1998. Identifiers can be created in string form with and without a prefix, and as byte arrays. Convenience methods are also provided for converting an identifier to and from an array of bytes.

Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.