Class TogglzProperties.Cache
java.lang.Object
org.togglz.spring.boot.actuate.autoconfigure.TogglzProperties.Cache
- Enclosing class:
- TogglzProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanvoidsetEnabled(boolean enabled) voidsetTimeToLive(long timeToLive) voidsetTimeUnit(TimeUnit timeUnit)
-
Constructor Details
-
Cache
public Cache()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getTimeToLive
public long getTimeToLive() -
setTimeToLive
public void setTimeToLive(long timeToLive) - Parameters:
timeToLive- time in milliseconds after which the cache will expire and the value will get reloaded. Setting this to 0 will never expire the cache unless the feature state gets modified. Negative values are not allowed.
-
getTimeUnit
-
setTimeUnit
-