Class SnowflakeIdBeanRegistrar
java.lang.Object
me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdBeanRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class SnowflakeIdBeanRegistrar
extends Object
implements org.springframework.beans.factory.InitializingBean
-
Constructor Summary
ConstructorDescriptionSnowflakeIdBeanRegistrar
(CosIdProperties cosIdProperties, MachineProperties machineProperties, SnowflakeIdProperties snowflakeIdProperties, InstanceId instanceId, IdGeneratorProvider idGeneratorProvider, MachineIdDistributor machineIdDistributor, ClockBackwardsSynchronizer clockBackwardsSynchronizer, org.springframework.context.ConfigurableApplicationContext applicationContext, CustomizeSnowflakeIdProperties customizeSnowflakeIdProperties) -
Method Summary
-
Constructor Details
-
SnowflakeIdBeanRegistrar
public SnowflakeIdBeanRegistrar(CosIdProperties cosIdProperties, MachineProperties machineProperties, SnowflakeIdProperties snowflakeIdProperties, InstanceId instanceId, IdGeneratorProvider idGeneratorProvider, MachineIdDistributor machineIdDistributor, ClockBackwardsSynchronizer clockBackwardsSynchronizer, org.springframework.context.ConfigurableApplicationContext applicationContext, @Nullable CustomizeSnowflakeIdProperties customizeSnowflakeIdProperties)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
register
public void register()
-