Class DefaultCacheConfiguration

java.lang.Object
com.okta.sdk.impl.cache.DefaultCacheConfiguration
All Implemented Interfaces:
CacheConfiguration

public class DefaultCacheConfiguration extends Object implements CacheConfiguration
Since:
0.5.0
  • Constructor Details

    • DefaultCacheConfiguration

      public DefaultCacheConfiguration(String name, Duration timeToLive, Duration timeToIdle)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: CacheConfiguration
      Returns the name of the Cache for which this configuration applies.
      Specified by:
      getName in interface CacheConfiguration
      Returns:
      the name of the Cache for which this configuration applies.
    • getTimeToLive

      public Duration getTimeToLive()
      Description copied from interface: CacheConfiguration
      Returns the Time-to-Live setting to apply for all entries in the associated Cache.
      Specified by:
      getTimeToLive in interface CacheConfiguration
      Returns:
      the Time-to-Live setting to apply for all entries in the associated Cache.
    • getTimeToIdle

      public Duration getTimeToIdle()
      Description copied from interface: CacheConfiguration
      Returns the Time-to-Idle setting to apply for all entries in the associated Cache.
      Specified by:
      getTimeToIdle in interface CacheConfiguration
      Returns:
      the Time-to-Idle setting to apply for all entries in the associated Cache.
    • toString

      public String toString()
      Overrides:
      toString in class Object