Package com.hazelcast.config
Class NearCachePreloaderConfig
java.lang.Object
com.hazelcast.config.NearCachePreloaderConfig
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionstatic final int
Default initial delay for the Near Cache key storage.static final int
Default interval for the Near Cache key storage (in seconds). -
Constructor Summary
ConstructorDescriptionNearCachePreloaderConfig
(boolean enabled, String directory) NearCachePreloaderConfig
(NearCachePreloaderConfig nearCachePreloaderConfig) NearCachePreloaderConfig
(String directory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
hashCode()
boolean
setDirectory
(String directory) setEnabled
(boolean isEnabled) setStoreInitialDelaySeconds
(int storeInitialDelaySeconds) setStoreIntervalSeconds
(int storeIntervalSeconds) toString()
-
Field Details
-
DEFAULT_STORE_INITIAL_DELAY_SECONDS
public static final int DEFAULT_STORE_INITIAL_DELAY_SECONDSDefault initial delay for the Near Cache key storage.- See Also:
-
DEFAULT_STORE_INTERVAL_SECONDS
public static final int DEFAULT_STORE_INTERVAL_SECONDSDefault interval for the Near Cache key storage (in seconds).- See Also:
-
-
Constructor Details
-
NearCachePreloaderConfig
public NearCachePreloaderConfig() -
NearCachePreloaderConfig
-
NearCachePreloaderConfig
-
NearCachePreloaderConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
-
setDirectory
-
getDirectory
-
getStoreInitialDelaySeconds
public int getStoreInitialDelaySeconds() -
setStoreInitialDelaySeconds
-
getStoreIntervalSeconds
public int getStoreIntervalSeconds() -
setStoreIntervalSeconds
-
toString
-
equals
-
hashCode
public int hashCode()
-