public class EtcdIdEngine extends Object implements IDidEngine<Long>
GEDID| 构造器和说明 |
|---|
EtcdIdEngine(io.etcd.jetcd.Client etcdClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 IDidEngine<Long>businessName - business namestartId - the first idpublic String getEmbellishedName(String businessName)
IDidEnginegetEmbellishedName 在接口中 IDidEngine<Long>businessName - the business namepublic Long getFixedStartId(Long startId)
IDidEnginegetFixedStartId 在接口中 IDidEngine<Long>startId - not all startIdT default return startId selfpublic Long next(String businessName)
IDidEnginenext 在接口中 IDidEngine<Long>businessName - the business namepublic String engineName()
IDidEngineengineName 在接口中 IDidEngine<Long>Copyright © 2022. All rights reserved.