Class HiLoGenerator

All Implemented Interfaces:
IDGenerator, IDGenerator.Ordered
Direct Known Subclasses:
DelegatingHiLoGenerator

public abstract class HiLoGenerator extends IDGenerator.OrderedSupport
Abstract base class for a HiLo-style generator that cheaply generates "lo" IDs in memory but only seldomly increments (potentially more expensive) a "hi" ID, e.g. in a persistent store. The combination of "lo" and "hi" ID becomes the final ID returned to the caller.
Author:
Christian Ohr