public class IDSequence extends Object
Constructor and Description |
---|
IDSequence() |
IDSequence(boolean cyclic) |
IDSequence(boolean cyclic,
long cycleLen) |
Modifier and Type | Method and Description |
---|---|
long |
getCurrentID() |
long |
getNextID()
Creates the next ID, if overflow a RuntimeException is thrown.
|
void |
reset() |
void |
reset(long value) |
Copyright © 2020 The Apache Software Foundation. All rights reserved.