com.nepxion.aquarius.limit.annotation.Limit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aquarius-limit-aop Show documentation
Show all versions of aquarius-limit-aop Show documentation
Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework
package com.nepxion.aquarius.limit.annotation;
/**
* Title: Nepxion Aquarius
* Description: Nepxion Aquarius
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Limit {
/**
* 资源的名字
* @return String
*/
String name() default "";
/**
* 资源的key
* @return String
*/
String key() default "";
/**
* 给定的时间段
* 单位秒
* @return int
*/
int limitPeriod();
/**
* 最多的访问限制次数
* @return int
*/
int limitCount();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy