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

com.qwlabs.quarkus.http.CacheControl Maven / Gradle / Ivy

There is a newer version: 0.2.354
Show newest version
package com.qwlabs.quarkus.http;

import jakarta.enterprise.util.Nonbinding;
import jakarta.interceptor.InterceptorBinding;

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;

@InterceptorBinding
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Inherited
public @interface CacheControl {
    @Nonbinding
    long maxAge() default -1;

    @Nonbinding
    long shareMaxAge() default -1;

    @Nonbinding
    long minFresh() default -1;

    @Nonbinding
    boolean mustRevalidate() default false;

    @Nonbinding
    boolean isPublic() default false;

    @Nonbinding
    boolean isPrivate() default false;

    @Nonbinding
    boolean immutable() default false;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy