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 classCacheControl.Type
-
Field Summary
Fields Modifier and Type Field Description static CacheControlNONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAge()CacheControl.TypegetType()TimeUnitgetUnit()booleanisMustRevalidate()static CacheControlPRIVATE(long age, TimeUnit unit)static CacheControlPUBLIC(long age, TimeUnit unit)CacheControlsetMustRevalidate()
-
-
-
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()
-
-