Class NearCachePreloaderConfig

java.lang.Object
com.hazelcast.config.NearCachePreloaderConfig
All Implemented Interfaces:
Serializable

public class NearCachePreloaderConfig extends Object implements Serializable
Configuration for storing and preloading Near Cache keys.

Preloader re-populates Near Cache after client/server restart to provide fast access.

Since:
3.8
See Also:
  • Field Details

    • DEFAULT_STORE_INITIAL_DELAY_SECONDS

      public static final int DEFAULT_STORE_INITIAL_DELAY_SECONDS
      Default initial delay for the Near Cache key storage.
      See Also:
    • DEFAULT_STORE_INTERVAL_SECONDS

      public static final int DEFAULT_STORE_INTERVAL_SECONDS
      Default interval for the Near Cache key storage (in seconds).
      See Also:
  • Constructor Details

    • NearCachePreloaderConfig

      public NearCachePreloaderConfig()
    • NearCachePreloaderConfig

      public NearCachePreloaderConfig(NearCachePreloaderConfig nearCachePreloaderConfig)
    • NearCachePreloaderConfig

      public NearCachePreloaderConfig(String directory)
    • NearCachePreloaderConfig

      public NearCachePreloaderConfig(boolean enabled, String directory)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public NearCachePreloaderConfig setEnabled(boolean isEnabled)
    • setDirectory

      public NearCachePreloaderConfig setDirectory(String directory)
    • getDirectory

      public String getDirectory()
    • getStoreInitialDelaySeconds

      public int getStoreInitialDelaySeconds()
    • setStoreInitialDelaySeconds

      public NearCachePreloaderConfig setStoreInitialDelaySeconds(int storeInitialDelaySeconds)
    • getStoreIntervalSeconds

      public int getStoreIntervalSeconds()
    • setStoreIntervalSeconds

      public NearCachePreloaderConfig setStoreIntervalSeconds(int storeIntervalSeconds)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object