Class MistIdGenerator
java.lang.Object
icu.congee.id.generator.distributed.mist.MistIdGenerator
- All Implemented Interfaces:
IdGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionMistIdGenerator(org.redisson.api.RedissonClient redisson, String name, long initialValue, boolean useSecureRandom, int bufferSize) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icu.congee.id.base.IdGenerator
generate
-
Constructor Details
-
MistIdGenerator
public MistIdGenerator(org.redisson.api.RedissonClient redisson, @Value("${id.generator.mist.name:IdGenerator:MistIdGenerator:current}") String name, @Value("${id.generator.mist.value:-1}") long initialValue, @Value("${id.generator.mist.secret:false}") boolean useSecureRandom, @Value("${id.generator.mist.bufferSize:1000}") int bufferSize)
-
-
Method Details
-
generate
- Specified by:
generatein interfaceIdGenerator
-
idType
- Specified by:
idTypein interfaceIdGenerator
-