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

com.github.andyshao.lock.RepeatCheck Maven / Gradle / Ivy

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