Package org.craftercms.core.service
Class CachingOptions
- java.lang.Object
-
- org.craftercms.core.service.CachingOptions
-
public class CachingOptions extends Object
Set of options that should be used when caching in a service call.expireAfterandrefreshFrequencyare expressed in ticks.- Author:
- Alfonso Vásquez
-
-
Field Summary
Fields Modifier and Type Field Description static CachingOptionsCACHE_OFF_CACHING_OPTIONSstatic CachingOptionsDEFAULT_CACHING_OPTIONS
-
Constructor Summary
Constructors Constructor Description CachingOptions()CachingOptions(boolean doCaching, long expireAfter, long refreshFrequency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoCaching()booleanequals(Object o)longgetExpireAfter()longgetRefreshFrequency()inthashCode()voidsetDoCaching(boolean doCaching)voidsetExpireAfter(long expireAfter)voidsetRefreshFrequency(long refreshFrequency)
-
-
-
Field Detail
-
DEFAULT_CACHING_OPTIONS
public static final CachingOptions DEFAULT_CACHING_OPTIONS
-
CACHE_OFF_CACHING_OPTIONS
public static final CachingOptions CACHE_OFF_CACHING_OPTIONS
-
-
Method Detail
-
doCaching
public boolean doCaching()
-
setDoCaching
public void setDoCaching(boolean doCaching)
-
getExpireAfter
public long getExpireAfter()
-
setExpireAfter
public void setExpireAfter(long expireAfter)
-
getRefreshFrequency
public long getRefreshFrequency()
-
setRefreshFrequency
public void setRefreshFrequency(long refreshFrequency)
-
-