public abstract class HiLoKeyGeneratorBase
extends java.lang.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 java.lang.String |
lastServerPrefix |
protected java.lang.String |
RAVEN_KEY_GENERATORS_HILO |
protected java.lang.String |
RAVEN_KEY_SERVER_PREFIX |
protected java.lang.String |
tag |
Modifier | Constructor and Description |
---|---|
protected |
HiLoKeyGeneratorBase(java.lang.String tag,
long capacity) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDocumentKeyFromId(DocumentConvention convention,
long nextId) |
protected java.lang.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 java.lang.String RAVEN_KEY_GENERATORS_HILO
protected final java.lang.String RAVEN_KEY_SERVER_PREFIX
protected final java.lang.String tag
protected long capacity
protected long baseCapacity
protected java.lang.String lastServerPrefix
protected long lastRequestedUtc1
protected long lastRequestedUtc2
protected HiLoKeyGeneratorBase(java.lang.String tag, long capacity)
protected java.lang.String getDocumentKeyFromId(DocumentConvention convention, long nextId)
protected long getMaxFromDocument(JsonDocument document, long minMax)
protected java.lang.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 © 2014. All Rights Reserved.