All Downloads are FREE. Search and download functionalities are using the official Maven repository.

im.shs.tick.sequence.properties.SequenceSnowflakeProperties Maven / Gradle / Ivy

package im.shs.tick.sequence.properties;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Snowflake 发号器属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "tick.config.xsequence.snowflake")
@EqualsAndHashCode(callSuper = true)
public class SequenceSnowflakeProperties extends BaseSequenceProperties {

    /**
     * 数据中心ID,值的范围在[0,31]之间,一般可以设置机房的IDC[必选]
     */
    private long datacenterId;
    /**
     * 工作机器ID,值的范围在[0,31]之间,一般可以设置机器编号[必选]
     */
    private long workerId;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy