Class RegionUtils
java.lang.Object
org.springframework.data.gemfire.util.SpringUtils
org.springframework.data.gemfire.util.DistributedSystemUtils
org.springframework.data.gemfire.util.CacheUtils
org.springframework.data.gemfire.util.RegionUtils
- Direct Known Subclasses:
GemfireUtils
The
RegionUtils
class is an abstract utility class for working with Regions
.- Since:
- 2.0.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.CacheUtils
DEFAULT_POOL_NAME
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 void
assertClientRegionShortcutAndPersistentAttributeAreCompatible
(ClientRegionShortcut clientRegionShortcut, Boolean persistent) Assert that the configuration settings forClientRegionShortcut
and the persistent attribute in <gfe:*-region> elements are compatible.static void
assertDataPolicyAndPersistentAttributeAreCompatible
(DataPolicy dataPolicy, Boolean persistent) Assert that the configuration settings forDataPolicy
and the persistent attribute in <gfe:*-region> elements are compatible.static boolean
Safely closes the targetRegion
.static boolean
static boolean
isCloseable
(Region<?, ?> region) Determines whether the givenRegion
is closeable.static boolean
static boolean
static String
toRegionName
(String regionPath) static String
toRegionName
(Region<?, ?> region) static String
toRegionPath
(String regionName) static String
toRegionPath
(Region<?, ?> region) Methods inherited from class org.springframework.data.gemfire.util.CacheUtils
close, close, close, closeCache, closeClientCache, getCache, getClientCache, isClient, isDefaultPool, isDefaultPool, isDurable, isNotDefaultPool, isNotDefaultPool, isPeer, resolveGemFireCache
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
-
Constructor Details
-
RegionUtils
public RegionUtils()
-
-
Method Details
-
assertClientRegionShortcutAndPersistentAttributeAreCompatible
public static void assertClientRegionShortcutAndPersistentAttributeAreCompatible(ClientRegionShortcut clientRegionShortcut, Boolean persistent) Assert that the configuration settings forClientRegionShortcut
and the persistent attribute in <gfe:*-region> elements are compatible.- Parameters:
clientRegionShortcut
-ClientRegionShortcut
resolved from the SDG XML namespace.persistent
- boolean indicating the value of the persistent configuration attribute.- See Also:
-
assertDataPolicyAndPersistentAttributeAreCompatible
public static void assertDataPolicyAndPersistentAttributeAreCompatible(DataPolicy dataPolicy, Boolean persistent) Assert that the configuration settings forDataPolicy
and the persistent attribute in <gfe:*-region> elements are compatible.- Parameters:
dataPolicy
-DataPolicy
resolved from the SDG XML namespace.persistent
- boolean indicating the value of the persistent configuration attribute.- See Also:
-
close
Safely closes the targetRegion
. -
isClient
-
isCloseable
Determines whether the givenRegion
is closeable. -
isLocal
-
toRegionName
-
toRegionName
-
toRegionPath
-
toRegionPath
-
isServer
-