Package org.uncommons.util.id
Strategies for providing unique identifiers of different types.
-
Interface Summary Interface Description IDSource<T extends Serializable> Defines operations for classes that generate unique identifiers. -
Class Summary Class Description CompositeIDSource Thread-safe source for partitioned unique IDs.IntSequenceIDSource Thread-safe source for unique IDs.LongSequenceIDSource Thread-safe source for unique IDs.StringPrefixIDSource Thread-safe ID source that wraps another source of IDs and adds a fixed String prefix to each ID generated. -
Exception Summary Exception Description IDSourceExhaustedException Unchecked exception thrown if anIDSource
runs out of unique IDs.