Class TogglzProperties.Cache

    • Constructor Detail

      • Cache

        public Cache()
    • 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)