com.github.maojx0630.snowFlakeZk.SnowFlakeZkApplicationRunner Maven / Gradle / Ivy
package com.github.maojx0630.snowFlakeZk;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
/**
*
* @author MaoJiaXing
* @date 2019-08-29 12:39
*/
public class SnowFlakeZkApplicationRunner implements ApplicationRunner {
private ZookeeperConfig zookeeperConfig;
public SnowFlakeZkApplicationRunner(ZookeeperConfig zookeeperConfig) {
this.zookeeperConfig = zookeeperConfig;
}
@Override
public void run(ApplicationArguments applicationArguments) throws Exception {
new SnowFlakeZookeeper(zookeeperConfig);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy