Class ImadcnIdentifierGenerator
java.lang.Object
com.baomidou.mybatisplus.core.incrementer.ImadcnIdentifierGenerator
- All Implemented Interfaces:
IdentifierGenerator,Closeable,AutoCloseable
用 idworker 的实现
- Since:
- 3.4.0, 2020-08-11
- Author:
- miemie
-
Constructor Summary
ConstructorsConstructorDescriptionImadcnIdentifierGenerator(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) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator
assignId
-
Constructor Details
-
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)
-
-
Method Details
-
nextId
Description copied from interface:IdentifierGenerator生成Id- Specified by:
nextIdin interfaceIdentifierGenerator- Parameters:
entity- 实体- Returns:
- id
-
nextUUID
Description copied from interface:IdentifierGenerator生成uuid- Specified by:
nextUUIDin interfaceIdentifierGenerator- Parameters:
entity- 实体- Returns:
- uuid
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-