com.hazelcast.config
public class NearCacheConfig extends Object implements DataSerializable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NearCacheConfig.LocalUpdatePolicy
Local Update Policy enum.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EVICTION_POLICY
Default eviction policy
|
static int |
DEFAULT_MAX_IDLE_SECONDS
Default value of idle in seconds for eviction.
|
static int |
DEFAULT_MAX_SIZE
Default value of maximum size
|
static InMemoryFormat |
DEFAULT_MEMORY_FORMAT
Default memory format
|
static int |
DEFAULT_TTL_SECONDS
Default value of time to live in seconds.
|
Constructor and Description |
---|
NearCacheConfig() |
NearCacheConfig(int timeToLiveSeconds,
int maxSize,
String evictionPolicy,
int maxIdleSeconds,
boolean invalidateOnChange,
InMemoryFormat inMemoryFormat) |
NearCacheConfig(int timeToLiveSeconds,
int maxSize,
String evictionPolicy,
int maxIdleSeconds,
boolean invalidateOnChange,
InMemoryFormat inMemoryFormat,
EvictionConfig evictionConfig) |
NearCacheConfig(NearCacheConfig config) |
NearCacheConfig(String name) |
public static final int DEFAULT_TTL_SECONDS
public static final int DEFAULT_MAX_IDLE_SECONDS
public static final int DEFAULT_MAX_SIZE
public static final String DEFAULT_EVICTION_POLICY
public static final InMemoryFormat DEFAULT_MEMORY_FORMAT
public NearCacheConfig()
public NearCacheConfig(String name)
public NearCacheConfig(int timeToLiveSeconds, int maxSize, String evictionPolicy, int maxIdleSeconds, boolean invalidateOnChange, InMemoryFormat inMemoryFormat)
public NearCacheConfig(int timeToLiveSeconds, int maxSize, String evictionPolicy, int maxIdleSeconds, boolean invalidateOnChange, InMemoryFormat inMemoryFormat, EvictionConfig evictionConfig)
public NearCacheConfig(NearCacheConfig config)
public NearCacheConfigReadOnly getAsReadOnly()
public String getName()
public NearCacheConfig setName(String name)
public int getTimeToLiveSeconds()
public NearCacheConfig setTimeToLiveSeconds(int timeToLiveSeconds)
public int getMaxSize()
public NearCacheConfig setMaxSize(int maxSize)
public String getEvictionPolicy()
public NearCacheConfig setEvictionPolicy(String evictionPolicy)
public int getMaxIdleSeconds()
public NearCacheConfig setMaxIdleSeconds(int maxIdleSeconds)
public boolean isInvalidateOnChange()
public NearCacheConfig setInvalidateOnChange(boolean invalidateOnChange)
public InMemoryFormat getInMemoryFormat()
public NearCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
public boolean isCacheLocalEntries()
public NearCacheConfig setCacheLocalEntries(boolean cacheLocalEntries)
public NearCacheConfig.LocalUpdatePolicy getLocalUpdatePolicy()
public NearCacheConfig setLocalUpdatePolicy(NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
public NearCacheConfig setInMemoryFormat(String inMemoryFormat)
public EvictionConfig getEvictionConfig()
public NearCacheConfig setEvictionConfig(EvictionConfig evictionConfig)
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 © 2015 Hazelcast, Inc.. All Rights Reserved.