com.github.andyshao.lock.RepeatCheck Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Gear Show documentation
Show all versions of Gear Show documentation
Enhance and formating the coding of JDK
The newest version!
package com.github.andyshao.lock;
/**
*
* Title: repeat checking
* Descript:
* Copyright: Copryright(c) 18 Apr 2017
* Encoding:UNIX UTF-8
* @author Andy.Shao
*
*/
public interface RepeatCheck {
/**
* is repeated
* @param uniqueKey unique key
* @param mode expired mode
* @param times time value
* @return if it can be repeated then true
*/
boolean isRepeat(String uniqueKey, ExpireMode mode, int times);
/**
* is repeated
* @param uniqueKey unique key
* @return if it can be repeated then true
*/
boolean isRepeat(String uniqueKey);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy