Class CacheUtils

Direct Known Subclasses:
RegionUtils

public abstract class CacheUtils extends DistributedSystemUtils
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
  • Field Details

  • 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

      public static boolean isDefaultPool(@Nullable String poolName)
    • isNotDefaultPool

      public static boolean isNotDefaultPool(@Nullable String poolName)
    • 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()