org.jboss.resteasy.annotations.cache
Annotation Type ServerCached


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface ServerCached

Specifies that the response to this jax-rs method should be cached on the server. Will reuse @Cache settings. Can override @Cache settings with maxAge() attribute.

Version:
$Revision: 1 $
Author:
Bill Burke

Optional Element Summary
 int maxAge
          Override @Cache settings if they must be different or if you do not want to send response Cache-Control headers
 boolean revalidationOnly
          Do not cache response, but do cache maxAge delta.
 

maxAge

public abstract int maxAge
Override @Cache settings if they must be different or if you do not want to send response Cache-Control headers

Returns:
Default:
-1

revalidationOnly

public abstract boolean revalidationOnly
Do not cache response, but do cache maxAge delta. This allows server cache to handle revalidation requests easily

Returns:
Default:
false


Copyright © 2011. All Rights Reserved.