Class GeodeCache

  • All Implemented Interfaces:
    Cache, ComponentLifecycle

    public class GeodeCache
    extends java.lang.Object
    implements Cache

    Interlok Apache Geode Cache Implementation.
    You can configure this component via the following options:

    • Cache file, region name and region type
    • Host, port, region name and region type

    Configuration parameters:

    • regionName - Name of the region where items will be cached
    • hostname - geode server hostname
    • port - integer, geode server port
    • clientRegionShortcut - String value region type as defined: ClientRegionShortcut
    • cacheFileName - String - simple file name of the geode config cache file which resides on the classpath
    • isDurable - boolean - maintain your durable queues after the client cache is closed

    • Constructor Detail

      • GeodeCache

        public GeodeCache()
    • Method Detail

      • initialiseCache

        protected void initialiseCache​(org.apache.geode.cache.client.ClientCacheFactory clientCacheFactory)
                                throws ServiceException
        Throws:
        ServiceException
      • getCache

        protected org.apache.geode.cache.Region<java.lang.String,​java.lang.Object> getCache()
      • getRegionName

        public java.lang.String getRegionName()
      • setRegionName

        public void setRegionName​(java.lang.String regionName)
      • getClientRegionShortcut

        public org.apache.geode.cache.client.ClientRegionShortcut getClientRegionShortcut()
      • setClientRegionShortcut

        public void setClientRegionShortcut​(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
      • clientRegionShortcut

        public org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut()
      • getDurable

        public java.lang.Boolean getDurable()
      • setDurable

        public void setDurable​(java.lang.Boolean durable)