com.github.kubatatami.judonetworking.ServerCache Maven / Gradle / Ivy
package com.github.kubatatami.judonetworking;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created with IntelliJ IDEA.
* User: jbogacki
* Date: 24.09.2013
* Time: 19:45
* To change this template use File | Settings | File Templates.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface ServerCache {
public boolean enabled() default true;
boolean useOldOnError() default false;
public int size() default 0;
public ServerCacheLevel cacheLevel() default ServerCacheLevel.DISK_CACHE;
}