SEQUENCE_OVERFLOW, TIME_TO_LIVE_FOREVER| Constructor and Description |
|---|
MergedIdSegment(int segments,
IdSegment idSegment) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFetchTime()
ID segment fetch time.
|
long |
getMaxId() |
long |
getOffset() |
int |
getSegments() |
long |
getSequence() |
long |
getSingleStep() |
long |
getStep() |
long |
getTtl()
the id segment time to live.
|
long |
incrementAndGet() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTo, ensureNextIdSegment, isAvailable, isExpired, isOverflow, isOverflowpublic MergedIdSegment(int segments,
IdSegment idSegment)
public int getSegments()
public long getSingleStep()
public long getFetchTime()
TimeUnit.MILLISECONDSgetFetchTime in interface IdSegmentpublic long getSequence()
getSequence in interface IdSegmentpublic long getTtl()
IdSegmentTimeUnit.SECONDSpublic long incrementAndGet()
incrementAndGet in interface IdSegmentpublic java.lang.String toString()
toString in class java.lang.Object