PersionalRateLimit.java 536 Bytes
package com.yoho.search.aop.downgrade;

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 PersionalRateLimit {

	public int limit() default 100;// 总次数

	public int second() default 10;// 总时间
	
	public String name() default "";

	public boolean isOrderUseable();// order参数是否对个性化有影响

}