Spring Session for VMware GemFire
Class GemFireUtils
java.lang.Object
org.springframework.session.data.gemfire.support.GemFireUtils
GemFireUtils is an abstract, extensible utility class for working with Apache Geode and Pivotal GemFire
objects and types.- Since:
- 1.1.0
- See Also:
-
CacheGemFireCacheRegionClientCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanNull-safe method to close the givenCloseableobject.static booleanisClient(org.apache.geode.cache.GemFireCache gemfireCache) Determines whether the Pivotal GemFire cache is a client.static booleanisLocal(org.apache.geode.cache.client.ClientRegionShortcut shortcut) Determines whether the givenClientRegionShortcutis local only.static booleanisNonLocalClientRegion(org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis a non-local, clientRegion, aRegionfor which a corresponding serverRegionexists.static booleanisPeer(org.apache.geode.cache.GemFireCache gemFireCache) Determines whether the Pivotal GemFire cache is a peer.static booleanisProxy(org.apache.geode.cache.client.ClientRegionShortcut shortcut) Determines whether the givenClientRegionShortcutis a proxy-based shortcut.static booleanisProxy(org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis a PROXY.static booleanisProxy(org.apache.geode.cache.RegionShortcut shortcut) Determines whether theRegionShortcutis a Proxy-based shortcut.
-
Constructor Details
-
GemFireUtils
public GemFireUtils()
-
-
Method Details
-
close
Null-safe method to close the givenCloseableobject. -
isClient
public static boolean isClient(@Nullable org.apache.geode.cache.GemFireCache gemfireCache) Determines whether the Pivotal GemFire cache is a client.- Parameters:
gemfireCache- a reference to the Pivotal GemFire cache.- Returns:
- a boolean value indicating whether the Pivotal GemFire cache is a client.
- See Also:
-
ClientCacheGemFireCache
-
isPeer
public static boolean isPeer(@Nullable org.apache.geode.cache.GemFireCache gemFireCache) Determines whether the Pivotal GemFire cache is a peer.- Parameters:
gemFireCache- a reference to the Pivotal GemFire cache.- Returns:
- a boolean value indicating whether the Pivotal GemFire cache is a peer.
- See Also:
-
CacheGemFireCache
-
isLocal
public static boolean isLocal(@Nullable org.apache.geode.cache.client.ClientRegionShortcut shortcut) Determines whether the givenClientRegionShortcutis local only.- Parameters:
shortcut-ClientRegionShortcutto evaluate.- Returns:
- a boolean value indicating whether the
ClientRegionShortcutis local or not. - See Also:
-
ClientRegionShortcut
-
isNonLocalClientRegion
public static boolean isNonLocalClientRegion(@Nullable org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis a non-local, clientRegion, aRegionfor which a corresponding serverRegionexists.- Parameters:
region-Regionto evaluate.- Returns:
- a boolean value indicating whether the given
Regionis a non-local, clientRegion, aRegionfor which a corresponding serverRegionexists. - See Also:
-
RegionisPoolConfiguredOrHasServerProxy(Region)
-
isProxy
public static boolean isProxy(org.apache.geode.cache.client.ClientRegionShortcut shortcut) Determines whether the givenClientRegionShortcutis a proxy-based shortcut. "Proxy"-basedRegionskeep no local state.- Parameters:
shortcut-ClientRegionShortcutto evaluate.- Returns:
- a boolean value indicating whether the
ClientRegionShortcutrefers to a Proxy-based shortcut. - See Also:
-
ClientRegionShortcut
-
isProxy
public static boolean isProxy(org.apache.geode.cache.Region<?, ?> region) Determines whether the givenRegionis a PROXY.- Parameters:
region-Regionto evaluate as a PROXY; must not be null.- Returns:
- a boolean value indicating whether the
Regionis a PROXY. - See Also:
-
DataPolicyRegion
-
isProxy
public static boolean isProxy(org.apache.geode.cache.RegionShortcut shortcut) Determines whether theRegionShortcutis a Proxy-based shortcut. "Proxy"-basedRegionskeep no local state.- Parameters:
shortcut-RegionShortcutto evaluate.- Returns:
- a boolean value indicating whether the
RegionShortcutrefers to a Proxy-based shortcut. - See Also:
-
RegionShortcut
-