public class AbstractGlobalCache extends java.lang.Object implements GlobalCache
Constructor and Description |
---|
AbstractGlobalCache() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(GlobalCacheListener listener) |
boolean |
compareAndPut(long oldVersion,
java.lang.String hashValue) |
java.lang.Object |
get() |
ExtCacheEntry |
getExtCacheEntry() |
protected com.caucho.cloud.globalcache.GlobalCacheManager |
getManager() |
java.lang.String |
getName() |
void |
init() |
void |
removeListener(GlobalCacheListener listener) |
boolean |
replace(java.lang.Object prev,
java.lang.Object next) |
java.lang.Object |
set(java.lang.Object value) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
public void setName(java.lang.String name)
public java.lang.String getName()
protected com.caucho.cloud.globalcache.GlobalCacheManager getManager()
@PostConstruct public void init()
public java.lang.Object get()
get
in interface GlobalCache
public java.lang.Object set(java.lang.Object value)
set
in interface GlobalCache
public void addListener(GlobalCacheListener listener)
addListener
in interface GlobalCache
public void removeListener(GlobalCacheListener listener)
removeListener
in interface GlobalCache
public ExtCacheEntry getExtCacheEntry()
getExtCacheEntry
in interface GlobalCache
public boolean compareAndPut(long oldVersion, java.lang.String hashValue)
compareAndPut
in interface GlobalCache
public boolean replace(java.lang.Object prev, java.lang.Object next)
replace
in interface GlobalCache
public java.lang.String toString()
toString
in class java.lang.Object