public class DefaultSegmentId extends java.lang.Object implements SegmentId
| Constructor and Description |
|---|
DefaultSegmentId(IdSegmentDistributor maxIdDistributor) |
DefaultSegmentId(long idSegmentTtl,
IdSegmentDistributor maxIdDistributor) |
| Modifier and Type | Method and Description |
|---|---|
long |
generate()
Generate distributed ID.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateAsString, idConverterpublic DefaultSegmentId(IdSegmentDistributor maxIdDistributor)
public DefaultSegmentId(long idSegmentTtl,
IdSegmentDistributor maxIdDistributor)
public long generate()
IdGeneratorgenerate in interface IdGenerator