Class TogglzProperties.Cache
- java.lang.Object
-
- org.togglz.spring.boot.actuate.autoconfigure.TogglzProperties.Cache
-
- Enclosing class:
- TogglzProperties
public static class TogglzProperties.Cache extends Object
-
-
Constructor Summary
Constructors Constructor Description Cache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTimeToLive()TimeUnitgetTimeUnit()booleanisEnabled()voidsetEnabled(boolean enabled)voidsetTimeToLive(long timeToLive)voidsetTimeUnit(TimeUnit timeUnit)
-
-
-
Method Detail
-
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
public TimeUnit getTimeUnit()
-
setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)
-
-