public class EtcdIdEngine extends Object implements IDidEngine<Long>
GEDID| Constructor and Description |
|---|
EtcdIdEngine(io.etcd.jetcd.Client etcdClient) |
| Modifier and Type | Method and Description |
|---|---|
String |
engineName()
current engine's name
|
void |
follow(String businessName,
Long startId)
Follow The business with name.
|
String |
getEmbellishedName(String businessName)
get the embellished business name
|
Long |
getFixedStartId(Long startId)
get fixed start id
|
Long |
next(String businessName)
the next id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunsupportedOperationpublic void follow(String businessName, Long startId)
IDidEnginefollow in interface IDidEngine<Long>businessName - business namestartId - the first idpublic String getEmbellishedName(String businessName)
IDidEnginegetEmbellishedName in interface IDidEngine<Long>businessName - the business namepublic Long getFixedStartId(Long startId)
IDidEnginegetFixedStartId in interface IDidEngine<Long>startId - not all startIdT default return startId selfpublic Long next(String businessName)
IDidEnginenext in interface IDidEngine<Long>businessName - the business namepublic String engineName()
IDidEngineengineName in interface IDidEngine<Long>Copyright © 2021. All rights reserved.