类 ImadcnIdentifierGenerator
java.lang.Object
com.baomidou.mybatisplus.core.incrementer.ImadcnIdentifierGenerator
- 所有已实现的接口:
IdentifierGenerator
,Closeable
,AutoCloseable
public class ImadcnIdentifierGenerator extends Object implements IdentifierGenerator, Closeable
用 https://github.com/imadcn/idworker 的实现
- 从以下版本开始:
- 3.4.0, 2020-08-11
- 作者:
- miemie
-
构造器概要
构造器 构造器 说明 ImadcnIdentifierGenerator(com.imadcn.framework.idworker.config.ZookeeperConfiguration zookeeperConfiguration)
ImadcnIdentifierGenerator(com.imadcn.framework.idworker.config.ZookeeperConfiguration zookeeperConfiguration, com.imadcn.framework.idworker.config.ApplicationConfiguration applicationConfiguration)
ImadcnIdentifierGenerator(String serverLists)
-
方法概要
-
构造器详细资料
-
ImadcnIdentifierGenerator
-
ImadcnIdentifierGenerator
public ImadcnIdentifierGenerator(com.imadcn.framework.idworker.config.ZookeeperConfiguration zookeeperConfiguration) -
ImadcnIdentifierGenerator
public ImadcnIdentifierGenerator(com.imadcn.framework.idworker.config.ZookeeperConfiguration zookeeperConfiguration, com.imadcn.framework.idworker.config.ApplicationConfiguration applicationConfiguration)
-
-
方法详细资料
-
nextId
从接口复制的说明:IdentifierGenerator
生成Id- 指定者:
nextId
在接口中IdentifierGenerator
- 参数:
entity
- 实体- 返回:
- id
-
nextUUID
从接口复制的说明:IdentifierGenerator
生成uuid- 指定者:
nextUUID
在接口中IdentifierGenerator
- 参数:
entity
- 实体- 返回:
- uuid
-
close
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 抛出:
IOException
-