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 Link icon

    • DefaultCacheConfiguration Link icon

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

    • getName Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public String toString()
      Overrides:
      toString in class Object