Package com.hazelcast.config
Class NearCachePreloaderConfig
java.lang.Object
com.hazelcast.config.NearCachePreloaderConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable,Serializable
public class NearCachePreloaderConfig
extends Object
implements IdentifiedDataSerializable, 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
FieldsModifier and TypeFieldDescriptionstatic final intDefault initial delay for the Near Cache key storage.static final intDefault interval for the Near Cache key storage (in seconds). -
Constructor Summary
ConstructorsConstructorDescriptionNearCachePreloaderConfig(boolean enabled, String directory) NearCachePreloaderConfig(NearCachePreloaderConfig nearCachePreloaderConfig) NearCachePreloaderConfig(String directory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.intintinthashCode()booleanvoidReads fields from the input streamsetDirectory(String directory) setEnabled(boolean isEnabled) setStoreInitialDelaySeconds(int storeInitialDelaySeconds) setStoreIntervalSeconds(int storeIntervalSeconds) toString()voidWrites object fields to output stream
-
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
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
toString
-
equals
-
hashCode
public int hashCode()
-