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

com.chungkui.uid.UidProperties Maven / Gradle / Ivy

The newest version!
package com.chungkui.uid;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "uid")
public class UidProperties {
    private boolean enable;
    private boolean enableCache;
    private int timeBits = 31;
    private int workerBits = 17;
    private int seqBits = 15;

    public int getTimeBits() {
        return timeBits;
    }

    public void setTimeBits(int timeBits) {
        this.timeBits = timeBits;
    }

    public int getWorkerBits() {
        return workerBits;
    }

    public void setWorkerBits(int workerBits) {
        this.workerBits = workerBits;
    }

    public int getSeqBits() {
        return seqBits;
    }

    public void setSeqBits(int seqBits) {
        this.seqBits = seqBits;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public boolean isEnableCache() {
        return enableCache;
    }

    public void setEnableCache(boolean enableCache) {
        this.enableCache = enableCache;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy