Class CacheUtils
java.lang.Object
org.springframework.data.gemfire.util.SpringExtensions
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
- See Also:
-
Cache
CacheFactory
GemFireCache
Region
ClientCache
ClientCacheFactory
DistributedSystem
GemFireCacheImpl
DistributedSystemUtils
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.util.SpringExtensions
SpringExtensions.OrderedBeanWrapper<T>, SpringExtensions.ValueReturningThrowableOperation<T>, SpringExtensions.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
(org.apache.geode.cache.GemFireCache gemfireCache) static boolean
static boolean
static boolean
static org.apache.geode.cache.Cache
getCache()
static org.apache.geode.cache.client.ClientCache
static boolean
isClient
(org.apache.geode.cache.GemFireCache cache) static boolean
isDefaultPool
(String poolName) static boolean
isDefaultPool
(org.apache.geode.cache.client.Pool pool) static boolean
isDurable
(org.apache.geode.cache.client.ClientCache clientCache) static boolean
isNotDefaultPool
(String poolName) static boolean
isNotDefaultPool
(org.apache.geode.cache.client.Pool pool) static boolean
isPeer
(org.apache.geode.cache.GemFireCache cache) static org.apache.geode.cache.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.SpringExtensions
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
public static boolean isClient(@Nullable org.apache.geode.cache.GemFireCache cache) -
isDefaultPool
public static boolean isDefaultPool(@Nullable org.apache.geode.cache.client.Pool pool) -
isNotDefaultPool
public static boolean isNotDefaultPool(@Nullable org.apache.geode.cache.client.Pool pool) -
isDefaultPool
-
isNotDefaultPool
-
isDurable
public static boolean isDurable(@Nullable org.apache.geode.cache.client.ClientCache clientCache) -
isPeer
public static boolean isPeer(@Nullable org.apache.geode.cache.GemFireCache cache) -
close
public static boolean close() -
close
public static boolean close(@NonNull org.apache.geode.cache.GemFireCache gemfireCache) -
close
public static boolean close(@NonNull org.apache.geode.cache.GemFireCache gemfireCache, @Nullable Runnable shutdownHook) -
closeCache
public static boolean closeCache() -
closeClientCache
public static boolean closeClientCache() -
getCache
public static org.apache.geode.cache.Cache getCache() -
getClientCache
public static org.apache.geode.cache.client.ClientCache getClientCache() -
resolveGemFireCache
public static org.apache.geode.cache.GemFireCache resolveGemFireCache()
-