| NOTE:
This code is based on code from the [Plasmid Replication Engine] project.
Licensed under [Mozilla Public License 1.0 (MPL)].
Original JavaDoc:
Our distributed objects are generally named most efficiently (and cleanly)
by their UUID's. This class provides some static helpers for using UUID's.
If it was efficient to do in Java, I would make the uuid an normal class
and use instances of it. However, in current JVM's, we would end up using an
Object to represent a long, which is pretty expensive. Maybe someday. ###
UUID format: currently using currentTimeMillis() for the low bits. This uses
about 40 bits for the next 1000 years, leaving 24 bits for debugging
and consistency data. I'm using 8 of those for a magic asci 'U' byte.
Future: use one instance of Uuid per type of object for better performance
and more detailed info (instance could be matched to its uuid's via a map or
array). This all static version bites.###
|