package org.theonefx.wcframework.cache.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @File : MethodCache.java * @ClassName : MethodCache * @Author : 陈曦 * @Date : 2012-6-11 上午10:37:40 * @Version : v1.0 * @Description : 方法调用缓存,使用时间控制超时 */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface MethodCache { public long timeout() default 30000; }