Spring Data for VMware GemFire
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:
-
CacheCacheFactoryGemFireCacheRegionClientCacheClientCacheFactoryDistributedSystemGemFireCacheImplDistributedSystemUtils
-
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
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanclose()static booleanclose(org.apache.geode.cache.GemFireCache gemfireCache) static booleanstatic booleanstatic booleanstatic org.apache.geode.cache.CachegetCache()static org.apache.geode.cache.client.ClientCachestatic booleanisClient(org.apache.geode.cache.GemFireCache cache) static booleanisDefaultPool(String poolName) static booleanisDefaultPool(org.apache.geode.cache.client.Pool pool) static booleanisDurable(org.apache.geode.cache.client.ClientCache clientCache) static booleanisNotDefaultPool(String poolName) static booleanisNotDefaultPool(org.apache.geode.cache.client.Pool pool) static booleanisPeer(org.apache.geode.cache.GemFireCache cache) static org.apache.geode.cache.GemFireCacheMethods inherited from class org.springframework.data.gemfire.util.DistributedSystemUtils
configureDurableClient, getDistributedSystem, getDistributedSystem, getLocator, isConnected, isNotConnectedMethods 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()
-