public class NearCachePreloaderConfig extends Object implements IdentifiedDataSerializable, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_STORE_INITIAL_DELAY_SECONDS
Default initial delay for the Near Cache key storage.
|
static int |
DEFAULT_STORE_INTERVAL_SECONDS
Default interval for the Near Cache key storage (in seconds).
|
Constructor and Description |
---|
NearCachePreloaderConfig() |
NearCachePreloaderConfig(boolean enabled,
String directory) |
NearCachePreloaderConfig(NearCachePreloaderConfig nearCachePreloaderConfig) |
NearCachePreloaderConfig(String directory) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDirectory() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
int |
getStoreInitialDelaySeconds() |
int |
getStoreIntervalSeconds() |
int |
hashCode() |
boolean |
isEnabled() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
NearCachePreloaderConfig |
setDirectory(String directory) |
NearCachePreloaderConfig |
setEnabled(boolean isEnabled) |
NearCachePreloaderConfig |
setStoreInitialDelaySeconds(int storeInitialDelaySeconds) |
NearCachePreloaderConfig |
setStoreIntervalSeconds(int storeIntervalSeconds) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final int DEFAULT_STORE_INITIAL_DELAY_SECONDS
public static final int DEFAULT_STORE_INTERVAL_SECONDS
public NearCachePreloaderConfig()
public NearCachePreloaderConfig(NearCachePreloaderConfig nearCachePreloaderConfig)
public NearCachePreloaderConfig(String directory)
public NearCachePreloaderConfig(boolean enabled, String directory)
public boolean isEnabled()
public NearCachePreloaderConfig setEnabled(boolean isEnabled)
public NearCachePreloaderConfig setDirectory(String directory)
public String getDirectory()
public int getStoreInitialDelaySeconds()
public NearCachePreloaderConfig setStoreInitialDelaySeconds(int storeInitialDelaySeconds)
public int getStoreIntervalSeconds()
public NearCachePreloaderConfig setStoreIntervalSeconds(int storeIntervalSeconds)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.