| Package | Description |
|---|---|
| com.stormpath.sdk.impl.cache | |
| com.stormpath.sdk.impl.util |
| Modifier and Type | Method and Description |
|---|---|
Duration |
DefaultCacheManager.getDefaultTimeToIdle()
Returns the default
timeToIdle duration
to apply to newly created DefaultCache instances. |
Duration |
DefaultCacheManager.getDefaultTimeToLive()
Returns the default
timeToLive duration
to apply to newly created DefaultCache instances. |
Duration |
DefaultCacheConfigurationBuilder.getTimeToIdle() |
Duration |
DefaultCacheConfiguration.getTimeToIdle() |
Duration |
DefaultCache.getTimeToIdle()
Returns the amount of time a cache entry may be idle - unused (not accessed) - before it will expire and
no longer be available.
|
Duration |
CacheConfiguration.getTimeToIdle()
Returns the Time-to-Idle setting to apply for all entries in the associated
Cache. |
Duration |
DefaultCacheConfigurationBuilder.getTimeToLive() |
Duration |
DefaultCacheConfiguration.getTimeToLive() |
Duration |
DefaultCache.getTimeToLive()
Returns the amount of time a cache entry may exist after first being created before it will expire and no
longer be available.
|
Duration |
CacheConfiguration.getTimeToLive()
Returns the Time-to-Live setting to apply for all entries in the associated
Cache. |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
DefaultCache.assertTti(Duration tti) |
protected static void |
DefaultCache.assertTtl(Duration ttl) |
void |
DefaultCacheManager.setDefaultTimeToIdle(Duration defaultTimeToIdle)
Sets the default
timeToIdle duration
to apply to newly created DefaultCache instances. |
void |
DefaultCacheManager.setDefaultTimeToLive(Duration defaultTimeToLive)
Sets the default
timeToLive duration
to apply to newly created DefaultCache instances. |
void |
DefaultCache.setTimeToIdle(Duration timeToIdle)
Sets the amount of time a cache entry may be idle - unused (not accessed) - before it will expire and
no longer be available.
|
void |
DefaultCache.setTimeToLive(Duration timeToLive)
Sets the amount of time a cache entry may exist after first being created before it will expire and no
longer be available.
|
| Constructor and Description |
|---|
DefaultCache(String name,
Map<K,DefaultCache.Entry<V>> backingMap,
Duration timeToLive,
Duration timeToIdle)
Creates a new
DefaultCache instance with the specified name, storing entries in the specified
backingMap, using the specified timeToLive and timeToIdle settings. |
DefaultCacheConfiguration(String name,
Duration timeToLive,
Duration timeToIdle) |
| Modifier and Type | Method and Description |
|---|---|
Duration |
Duration.clone() |
| Modifier and Type | Method and Description |
|---|---|
int |
Duration.compareTo(Duration duration) |
boolean |
Duration.isEquivalentTo(Duration duration) |
boolean |
Duration.isGreaterThan(Duration duration) |
boolean |
Duration.isLessThan(Duration duration) |
Copyright © 2012–2014. All rights reserved.