public abstract class CacheUtils extends DistributedSystemUtils
CacheUtils is an abstract utility class encapsulating common operations for working with
GemFire Cache and ClientCache instances.DistributedSystemUtils,
Cache,
CacheFactory,
GemFireCache,
Region,
ClientCache,
ClientCacheFactory,
DistributedSystem,
GemFireCacheImpl| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POOL_NAME |
DEFAULT_CACHE_SERVER_PORT, DEFAULT_LOCATOR_PORT, DURABLE_CLIENT_ID_PROPERTY_NAME, DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME| Constructor and Description |
|---|
CacheUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeCache() |
static boolean |
closeClientCache() |
static com.gemstone.gemfire.cache.Cache |
getCache() |
static com.gemstone.gemfire.cache.client.ClientCache |
getClientCache() |
static boolean |
isClient(com.gemstone.gemfire.cache.GemFireCache cache) |
static boolean |
isDurable(com.gemstone.gemfire.cache.client.ClientCache clientCache) |
static boolean |
isPeer(com.gemstone.gemfire.cache.GemFireCache cache) |
static com.gemstone.gemfire.cache.GemFireCache |
resolveGemFireCache() |
static String |
toRegionPath(String regionName) |
configureDurableClient, getDistributedSystem, getDistributedSystem, isConnected, isNotConnectedaddDependsOn, defaultIfEmpty, defaultIfNull, dereferenceBean, equalsIgnoreNullpublic static final String DEFAULT_POOL_NAME
public static boolean isClient(com.gemstone.gemfire.cache.GemFireCache cache)
public static boolean isDurable(com.gemstone.gemfire.cache.client.ClientCache clientCache)
public static boolean isPeer(com.gemstone.gemfire.cache.GemFireCache cache)
public static boolean closeCache()
public static boolean closeClientCache()
public static com.gemstone.gemfire.cache.Cache getCache()
public static com.gemstone.gemfire.cache.client.ClientCache getClientCache()
public static com.gemstone.gemfire.cache.GemFireCache resolveGemFireCache()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.