com.atlassian.confluence.cache.tangosol
Class TangosolCache

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(Object o)
           
 Object get(Object key)
           
 Collection getKeys()
           
 String getName()
           
 int getStatus()
          Deprecated.  
 int hashCode()
           
 void put(Object key, Object value)
           
 void remove(Object key)
           
 void removeAll()
           
 void setTimeToLive(long timeToLive, TimeUnit timeUnit)
          Update the time to live.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TangosolCache

public TangosolCache(com.tangosol.net.NamedCache cache)
Method Detail

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 - value
timeUnit - 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.