AbstractCache (Apache Geode 1.15.4)

org.apache.geode.modules.session.bootstrap

## Class AbstractCache

- java.lang.Object
- - org.apache.geode.modules.session.bootstrap.AbstractCache

- Direct Known Subclasses:
    ClientServerCache, PeerToPeerCache

      public abstract class AbstractCache
      extends Object

- - ### Field Summary

    Fields
    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.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    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()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### cache

          protected GemFireCache cache

    - #### instance

          protected static AbstractCache instance

      Instance reference which is set in static initialization blocks of any subclasses.

  - ### Method Detail

    - #### lifecycleEvent

          public void lifecycleEvent(LifecycleTypeAdapter eventType)

    - #### isStarted

          public boolean isStarted()

    - #### close

          public void close()

    - #### getCache

          public GemFireCache getCache()

    - #### getEvictionHeapPercentage

          public float getEvictionHeapPercentage()

    - #### setEvictionHeapPercentage

          public void setEvictionHeapPercentage(String evictionHeapPercentage)

    - #### getCriticalHeapPercentage

          public float getCriticalHeapPercentage()

    - #### setCriticalHeapPercentage

          public void setCriticalHeapPercentage(String criticalHeapPercentage)

    - #### setRebalance

          public void setRebalance(boolean rebalance)

    - #### getRebalance

          public boolean getRebalance()

    - #### setProperty

          public void setProperty(String name,
                                  String value)

    - #### getLogger

          public org.slf4j.Logger getLogger()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### createOrRetrieveCache

          protected abstract void createOrRetrieveCache()

    - #### rebalanceCache

          protected abstract void rebalanceCache()

    - #### getDefaultCacheXmlFileName

          protected abstract String getDefaultCacheXmlFileName()