Class CacheUtils
java.lang.Object
org.springframework.data.gemfire.util.SpringUtils
org.springframework.data.gemfire.util.DistributedSystemUtils
org.springframework.data.gemfire.util.CacheUtils
- Direct Known Subclasses:
RegionUtils
CacheUtils
is an abstract utility class encapsulating common operations for working with
Cache
and ClientCache
instances.- Since:
- 1.8.0
- Author:
- John Blum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.util.SpringUtils
SpringUtils.OrderedBeanWrapper<T>, SpringUtils.ValueReturningThrowableOperation<T>, SpringUtils.VoidReturningExceptionThrowingOperation, SpringUtils.VoidReturningThrowableOperation
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.util.DistributedSystemUtils
DEFAULT_CACHE_SERVER_PORT, DEFAULT_LOCATOR_PORT, DURABLE_CLIENT_ID_PROPERTY_NAME, DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME, GEMFIRE_PREFIX, NAME_PROPERTY_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
close()
static boolean
close
(GemFireCache gemfireCache) static boolean
close
(GemFireCache gemfireCache, Runnable shutdownHook) static boolean
static boolean
static Cache
getCache()
static ClientCache
static boolean
isClient
(GemFireCache cache) static boolean
isDefaultPool
(String poolName) static boolean
isDefaultPool
(Pool pool) static boolean
isDurable
(ClientCache clientCache) static boolean
isNotDefaultPool
(String poolName) static boolean
isNotDefaultPool
(Pool pool) static boolean
isPeer
(GemFireCache cache) static GemFireCache
Methods inherited from class org.springframework.data.gemfire.util.DistributedSystemUtils
configureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnected
Methods inherited from class org.springframework.data.gemfire.util.SpringUtils
addDependsOn, 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, setPropertyValue
-
Field Details
-
DEFAULT_POOL_NAME
- See Also:
-
-
Constructor Details
-
CacheUtils
public CacheUtils()
-
-
Method Details
-
isClient
-
isDefaultPool
-
isNotDefaultPool
-
isDefaultPool
-
isNotDefaultPool
-
isDurable
-
isPeer
-
close
public static boolean close() -
close
-
close
-
closeCache
public static boolean closeCache() -
closeClientCache
public static boolean closeClientCache() -
getCache
-
getClientCache
-
resolveGemFireCache
-