public abstract class CacheUtils extends DistributedSystemUtils
CacheUtils is an abstract utility class encapsulating common operations for working with
Cache and ClientCache instances.Cache,
CacheFactory,
GemFireCache,
Region,
ClientCache,
ClientCacheFactory,
DistributedSystem,
GemFireCacheImpl,
DistributedSystemUtilsSpringUtils.OrderedBeanWrapper<T>, SpringUtils.ValueReturningThrowableOperation<T>, SpringUtils.VoidReturningExceptionThrowingOperation, SpringUtils.VoidReturningThrowableOperation| 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, GEMFIRE_PREFIX, NAME_PROPERTY_NAME| Constructor and Description |
|---|
CacheUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
close() |
static boolean |
close(org.apache.geode.cache.GemFireCache gemfireCache) |
static boolean |
close(org.apache.geode.cache.GemFireCache gemfireCache,
Runnable shutdownHook) |
static boolean |
closeCache() |
static boolean |
closeClientCache() |
static org.apache.geode.cache.Cache |
getCache() |
static org.apache.geode.cache.client.ClientCache |
getClientCache() |
static boolean |
isClient(org.apache.geode.cache.GemFireCache cache) |
static boolean |
isDefaultPool(org.apache.geode.cache.client.Pool pool) |
static boolean |
isDefaultPool(String poolName) |
static boolean |
isDurable(org.apache.geode.cache.client.ClientCache clientCache) |
static boolean |
isNotDefaultPool(org.apache.geode.cache.client.Pool pool) |
static boolean |
isNotDefaultPool(String poolName) |
static boolean |
isPeer(org.apache.geode.cache.GemFireCache cache) |
static org.apache.geode.cache.GemFireCache |
resolveGemFireCache() |
configureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnectedaddDependsOn, areNotNull, defaultIfEmpty, defaultIfEmpty, defaultIfNull, defaultIfNull, dereferenceBean, equalsIgnoreNull, getBeansOfTypeOrdered, getBeansOfTypeOrdered, getOrder, getOrderedStreamOfBeansByType, getPropertyValue, isMatchingBean, nullOrEquals, nullSafeEquals, nullSafeName, nullSafeSimpleName, nullSafeType, nullSafeType, requireObject, requireObject, safeDoOperation, safeDoOperation, safeGetValue, safeGetValue, safeGetValue, safeGetValue, safeRunOperation, safeRunOperation, setPropertyReference, setPropertyValuepublic static final String DEFAULT_POOL_NAME
public static boolean isClient(@Nullable org.apache.geode.cache.GemFireCache cache)
public static boolean isDefaultPool(@Nullable org.apache.geode.cache.client.Pool pool)
public static boolean isNotDefaultPool(@Nullable org.apache.geode.cache.client.Pool pool)
public static boolean isDurable(@Nullable org.apache.geode.cache.client.ClientCache clientCache)
public static boolean isPeer(@Nullable org.apache.geode.cache.GemFireCache cache)
public static boolean close()
public static boolean close(@NonNull org.apache.geode.cache.GemFireCache gemfireCache)
public static boolean close(@NonNull org.apache.geode.cache.GemFireCache gemfireCache, @Nullable Runnable shutdownHook)
public static boolean closeCache()
public static boolean closeClientCache()
public static org.apache.geode.cache.Cache getCache()
public static org.apache.geode.cache.client.ClientCache getClientCache()
public static org.apache.geode.cache.GemFireCache resolveGemFireCache()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.