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

com.jvmbytes.spy.util.Sequencer Maven / Gradle / Ivy

package com.jvmbytes.spy.util;

import com.jvmbytes.spy.Spy;

/**
 * 序列发生器
 * 序列发生器用途非常广泛,主要用于圈定全局唯一性标识
 *
 * @author luanjia
 */
public class Sequencer {

    /**
     * 生成下一条序列
     *
     * @return 下一条序列
     */
    public int next() {
        // 这里直接修改为引用Spy的全局唯一序列,修复 #125
        return Spy.nextSequence();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy