com.atlassian.confluence.cache.tangosol
Class TangosolCache
java.lang.Object
com.atlassian.confluence.cache.tangosol.TangosolCache
- All Implemented Interfaces:
- com.atlassian.cache.Cache, ConfigurableCache
public class TangosolCache
- extends Object
- implements ConfigurableCache
A decorator class to call the correct methods in Tangosol's cache object.
Constructor Summary |
TangosolCache(com.tangosol.net.NamedCache cache)
|
TangosolCache
public TangosolCache(com.tangosol.net.NamedCache cache)
getName
public String getName()
- Specified by:
getName
in interface com.atlassian.cache.Cache
get
public Object get(Object key)
- Specified by:
get
in interface com.atlassian.cache.Cache
getKeys
public Collection getKeys()
- Specified by:
getKeys
in interface com.atlassian.cache.Cache
put
public void put(Object key,
Object value)
- Specified by:
put
in interface com.atlassian.cache.Cache
remove
public void remove(Object key)
- Specified by:
remove
in interface com.atlassian.cache.Cache
removeAll
public void removeAll()
- Specified by:
removeAll
in interface com.atlassian.cache.Cache
getStatus
@Deprecated
public int getStatus()
- Deprecated.
- (Suppress compiler error)
setTimeToLive
public void setTimeToLive(long timeToLive,
TimeUnit timeUnit)
- Description copied from interface:
ConfigurableCache
- Update the time to live. Please note, some implementations cannot store time values smaller than
TimeUnit.SECONDS
.
- Specified by:
setTimeToLive
in interface ConfigurableCache
- Parameters:
timeToLive
- valuetimeUnit
- unit of time
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2003-2013 Atlassian. All Rights Reserved.