public abstract class AbstractCache extends Object
Modifier and Type | Field and Description |
---|---|
protected GemFireCache |
cache |
protected static AbstractCache |
instance
Instance reference which is set in static initialization blocks of any subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract void |
createOrRetrieveCache() |
GemFireCache |
getCache() |
float |
getCriticalHeapPercentage() |
protected abstract String |
getDefaultCacheXmlFileName() |
float |
getEvictionHeapPercentage() |
org.slf4j.Logger |
getLogger() |
boolean |
getRebalance() |
boolean |
isStarted() |
void |
lifecycleEvent(LifecycleTypeAdapter eventType) |
protected abstract void |
rebalanceCache() |
void |
setCriticalHeapPercentage(String criticalHeapPercentage) |
void |
setEvictionHeapPercentage(String evictionHeapPercentage) |
void |
setProperty(String name,
String value) |
void |
setRebalance(boolean rebalance) |
String |
toString() |
protected GemFireCache cache
protected static AbstractCache instance
public void lifecycleEvent(LifecycleTypeAdapter eventType)
public boolean isStarted()
public void close()
public GemFireCache getCache()
public float getEvictionHeapPercentage()
public void setEvictionHeapPercentage(String evictionHeapPercentage)
public float getCriticalHeapPercentage()
public void setCriticalHeapPercentage(String criticalHeapPercentage)
public void setRebalance(boolean rebalance)
public boolean getRebalance()
public org.slf4j.Logger getLogger()
protected abstract void createOrRetrieveCache()
protected abstract void rebalanceCache()
protected abstract String getDefaultCacheXmlFileName()