Package com.adaptris.core.cache.geode
Class GeodeCache
java.lang.Object
com.adaptris.core.cache.geode.GeodeCache
- All Implemented Interfaces:
Cache,ComponentLifecycle
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()org.apache.geode.cache.client.ClientRegionShortcutvoidclose()getCache()org.apache.geode.cache.client.ClientRegionShortcutvoidinit()protected voidprotected voidinitialiseCache(org.apache.geode.cache.client.ClientCacheFactory clientCacheFactory) voidput(String key, Serializable value) voidvoidvoidsetCacheBuilder(ClientCacheBuilder cacheBuilder) voidsetClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) voidsetDurable(Boolean durable) voidsetRegionName(String regionName) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.ComponentLifecycle
start, stop
-
Constructor Details
-
GeodeCache
public GeodeCache()
-
-
Method Details
-
init
- Specified by:
initin interfaceComponentLifecycle- Throws:
CoreException
-
initialiseCache
- Throws:
ServiceException
-
initialiseCache
protected void initialiseCache(org.apache.geode.cache.client.ClientCacheFactory clientCacheFactory) throws ServiceException - Throws:
ServiceException
-
close
public void close()- Specified by:
closein interfaceComponentLifecycle
-
put
- Specified by:
putin interfaceCache- Throws:
CoreException
-
put
- Specified by:
putin interfaceCache- Throws:
CoreException
-
get
- Specified by:
getin interfaceCache- Throws:
CoreException
-
remove
- Specified by:
removein interfaceCache- Throws:
CoreException
-
size
- Specified by:
sizein interfaceCache- Throws:
CoreException
-
clear
- Specified by:
clearin interfaceCache- Throws:
CoreException
-
getCache
-
getRegionName
-
setRegionName
-
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
-
setDurable
-
getCacheBuilder
-
setCacheBuilder
-