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

im.shs.tick.sequence.seq.Sequence Maven / Gradle / Ivy

package im.shs.tick.sequence.seq;


import im.shs.tick.sequence.exception.SeqException;

/**
 * 序列号生成器接口
 */
public interface Sequence {

	/**
	 * 生成下一个序列号
	 *
	 * @return 序列号
	 * @throws SeqException 序列号异常
	 */
	long nextValue() throws SeqException;

	/**
	 * 下一个生成序号(带格式)
	 *
	 * @return
	 * @throws SeqException
	 */
	String nextNo() throws SeqException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy