package com.xxx.base.springframework.redis.interfaces;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface PreventDuplicateSubmit {
    /**
     * 防重复操作过期时间(秒)
     */
    long expireTime() default 5;

    /**
     * 获取锁超时时间(ms)
     */
    long timeout() default 1000;
}