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

com.nepxion.aquarius.limit.annotation.Limit Maven / Gradle / Ivy

Go to download

Nepxion Aquarius is a list of distribution components based on Redis + Zookeeper with Nepxion Matrix AOP framework

There is a newer version: 2.0.13
Show newest version
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