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
Author:
John Blum
See Also:
  • Field Details

  • Constructor Details

    • CacheUtils

      public CacheUtils()
  • Method Details

    • isClient

      public static boolean isClient(@Nullable GemFireCache cache)
    • isDefaultPool

      public static boolean isDefaultPool(@Nullable Pool pool)
    • isNotDefaultPool

      public static boolean isNotDefaultPool(@Nullable Pool pool)
    • isDefaultPool

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

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

      public static boolean isDurable(@Nullable ClientCache clientCache)
    • isPeer

      public static boolean isPeer(@Nullable GemFireCache cache)
    • close

      public static boolean close()
    • close

      public static boolean close(@NonNull GemFireCache gemfireCache)
    • close

      public static boolean close(@NonNull GemFireCache gemfireCache, @Nullable Runnable shutdownHook)
    • closeCache

      public static boolean closeCache()
    • closeClientCache

      public static boolean closeClientCache()
    • getCache

      public static Cache getCache()
    • getClientCache

      public static ClientCache getClientCache()
    • resolveGemFireCache

      public static GemFireCache resolveGemFireCache()