Class CacheControl
- java.lang.Object
-
- com.google.gerrit.extensions.restapi.CacheControl
-
public class CacheControl extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheControl.Type
-
Field Summary
Fields Modifier and Type Field Description static CacheControl
NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAge()
CacheControl.Type
getType()
TimeUnit
getUnit()
boolean
isMustRevalidate()
static CacheControl
PRIVATE(long age, TimeUnit unit)
static CacheControl
PUBLIC(long age, TimeUnit unit)
CacheControl
setMustRevalidate()
-
-
-
Field Detail
-
NONE
public static final CacheControl NONE
-
-
Method Detail
-
PUBLIC
public static CacheControl PUBLIC(long age, TimeUnit unit)
-
PRIVATE
public static CacheControl PRIVATE(long age, TimeUnit unit)
-
getType
public CacheControl.Type getType()
-
getAge
public long getAge()
-
getUnit
public TimeUnit getUnit()
-
isMustRevalidate
public boolean isMustRevalidate()
-
setMustRevalidate
public CacheControl setMustRevalidate()
-
-