T - The type of ID returned by this source.public interface IDSource<T extends Serializable>
Serializable type. The strategy used will vary between
implementations. It may be a straightforward sequence or a more complex, less predictable
algorithm.| Modifier and Type | Method and Description |
|---|---|
T |
nextID()
Implementing classes are responsible for synchronization if concurrent invocations
of this method are required.
|
T nextID()
IDSourceExhaustedException - If this ID source cannot generate any more
unique IDs.