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

top.lshaci.framework.web.service.PreventRepeat Maven / Gradle / Ivy

The newest version!
package top.lshaci.framework.web.service;

/**
 * 

This use for get, set, remove the submit key


* * 1.0.7:This method getAndSet add parameter timeout * * @author lshaci * @since 1.0.5 * @version 1.0.9 */ public interface PreventRepeat { String VALUE = "true"; /** * 判断 key 是否存在 * * @param key the submit key * @param timeout the operation timeout * @return the last value; if null, is the first submit */ boolean exists(String key, long timeout); /** * Remove the value of the submit key * * @param key the submit key */ void remove(String key); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy