com.atlassian.confluence.cache
Interface ConfigurableCache<K,V>

All Superinterfaces:
com.atlassian.cache.Cache<K,V>
All Known Subinterfaces:
ConfigurableManagedLockingCache<K,V>
All Known Implementing Classes:
AbstractHazelcastCache, ConfluenceHazelcastCache, ConfluenceHybridCache, ConfluenceMonitoringCache, ConfluenceMonitoringLockingCache

Deprecated. @since 5.5.1 please use ManagedCache instead

@Deprecated
public interface ConfigurableCache<K,V>
extends com.atlassian.cache.Cache<K,V>

Defines a configurable Cache. This interface provides additional methods that allow the runtime configuration of a cache to be configured.


Method Summary
 void setTimeToLive(long timeToLive, java.util.concurrent.TimeUnit timeUnit)
          Deprecated. Since 5.6. Use CacheSettingsBuilder.expireAfterWrite(long, java.util.concurrent.TimeUnit)
 
Methods inherited from interface com.atlassian.cache.Cache
containsKey, get, getKeys, getName, put, putIfAbsent, remove, remove, removeAll, replace
 

Method Detail

setTimeToLive

@Deprecated
void setTimeToLive(long timeToLive,
                              java.util.concurrent.TimeUnit timeUnit)
Deprecated. Since 5.6. Use CacheSettingsBuilder.expireAfterWrite(long, java.util.concurrent.TimeUnit)

Update the time to live. Please note, some implementations cannot store time values smaller than TimeUnit.SECONDS.

Parameters:
timeToLive - value
timeUnit - unit of time


Copyright © 2003-2014 Atlassian. All Rights Reserved.