public class CombClockSequenceStrategy extends AbstractSequence implements ClockSequenceStrategy
| Modifier and Type | Field and Description |
|---|---|
protected long |
nodeIdentifier |
protected static int |
SEQUENCE_MAX |
protected static int |
SEQUENCE_MIN |
MAX_VALUE, MIN_VALUE, value| Constructor and Description |
|---|
CombClockSequenceStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
getClockSequence(long timestamp,
long nodeIdentifier) |
void |
reset() |
protected long nodeIdentifier
protected static final int SEQUENCE_MIN
protected static final int SEQUENCE_MAX
public int getClockSequence(long timestamp,
long nodeIdentifier)
getClockSequence in interface ClockSequenceStrategypublic void reset()
reset in interface Sequencereset in class AbstractSequenceCopyright © 2019. All rights reserved.