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