public class TimedCachePreventRepeat extends Object implements PreventRepeat
Time cache prevent repeat submit
getAndSet add parameter timeoutVALUE| 构造器和说明 |
|---|
TimedCachePreventRepeat(java.time.Duration timeout)
Constructor a timed cache prevent repeat with the timeout
|
public TimedCachePreventRepeat(java.time.Duration timeout)
timeout - This timeout of the submit keypublic boolean exists(String key, long timeout)
PreventRepeatexists 在接口中 PreventRepeatkey - the submit keytimeout - the operation timeoutpublic void remove(String key)
PreventRepeatremove 在接口中 PreventRepeatkey - the submit keyCopyright © 2020. All rights reserved.