|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.util.id.LongSequenceIDSource
public final class LongSequenceIDSource
Thread-safe source for unique IDs. This particular implementation restricts values to those positive integer values that can be represented by the long data type. Provides sequenced 64-bit IDs.
| Constructor Summary | |
|---|---|
LongSequenceIDSource()
Creates a sequence that starts at zero. |
|
LongSequenceIDSource(long firstValue)
|
|
| Method Summary | |
|---|---|
Long |
nextID()
Implementing classes are responsible for synchronization if concurrent invocations of this method are required. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongSequenceIDSource(long firstValue)
firstValue - The value at which to start the sequence (must
be non-negative).public LongSequenceIDSource()
| Method Detail |
|---|
public Long nextID()
nextID in interface IDSource<Long>
|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||