public abstract class HiLoKeyGeneratorBase extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
HiLoKeyGeneratorBase.RangeValue |
Modifier and Type | Field and Description |
---|---|
protected long |
baseCapacity |
protected long |
capacity |
protected long |
lastRequestedUtc1 |
protected long |
lastRequestedUtc2 |
protected String |
lastServerPrefix |
protected String |
RAVEN_KEY_GENERATORS_HILO |
protected String |
RAVEN_KEY_SERVER_PREFIX |
protected String |
tag |
Modifier | Constructor and Description |
---|---|
protected |
HiLoKeyGeneratorBase(String tag,
long capacity) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDocumentKeyFromId(DocumentConvention convention,
long nextId) |
protected String |
getHiLoDocumentKey() |
protected long |
getMaxFromDocument(JsonDocument document,
long minMax) |
protected HiLoKeyGeneratorBase.RangeValue |
getRange() |
protected JsonDocument |
handleGetDocumentResult(MultiLoadResult documents) |
boolean |
isDisableCapacityChanges() |
protected void |
modifyCapacityIfRequired() |
void |
setDisableCapacityChanges(boolean disableCapacityChanges) |
protected void |
setRange(HiLoKeyGeneratorBase.RangeValue range) |
protected final String RAVEN_KEY_GENERATORS_HILO
protected final String RAVEN_KEY_SERVER_PREFIX
protected final String tag
protected long capacity
protected long baseCapacity
protected String lastServerPrefix
protected long lastRequestedUtc1
protected long lastRequestedUtc2
protected HiLoKeyGeneratorBase(String tag, long capacity)
protected String getDocumentKeyFromId(DocumentConvention convention, long nextId)
protected long getMaxFromDocument(JsonDocument document, long minMax)
protected String getHiLoDocumentKey()
public boolean isDisableCapacityChanges()
public void setDisableCapacityChanges(boolean disableCapacityChanges)
protected void modifyCapacityIfRequired()
protected JsonDocument handleGetDocumentResult(MultiLoadResult documents)
protected HiLoKeyGeneratorBase.RangeValue getRange()
protected void setRange(HiLoKeyGeneratorBase.RangeValue range)
Copyright © 2016. All Rights Reserved.