public class NearCacheConfig extends Object
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(NearCacheConfig config) |
Modifier and Type | Method and Description |
---|---|
NearCacheConfigReadOnly |
getAsReadOnly() |
String |
getEvictionPolicy() |
InMemoryFormat |
getInMemoryFormat() |
int |
getMaxIdleSeconds() |
int |
getMaxSize() |
String |
getName() |
int |
getTimeToLiveSeconds() |
boolean |
isCacheLocalEntries() |
boolean |
isInvalidateOnChange() |
NearCacheConfig |
setCacheLocalEntries(boolean cacheLocalEntries) |
NearCacheConfig |
setEvictionPolicy(String evictionPolicy) |
NearCacheConfig |
setInMemoryFormat(InMemoryFormat inMemoryFormat) |
NearCacheConfig |
setInMemoryFormat(String inMemoryFormat) |
NearCacheConfig |
setInvalidateOnChange(boolean invalidateOnChange) |
NearCacheConfig |
setMaxIdleSeconds(int maxIdleSeconds) |
NearCacheConfig |
setMaxSize(int maxSize) |
void |
setName(String name) |
NearCacheConfig |
setTimeToLiveSeconds(int timeToLiveSeconds) |
String |
toString() |
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(int timeToLiveSeconds, int maxSize, String evictionPolicy, int maxIdleSeconds, boolean invalidateOnChange, InMemoryFormat inMemoryFormat)
public NearCacheConfig(NearCacheConfig config)
public NearCacheConfigReadOnly getAsReadOnly()
public String getName()
public void 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 setInMemoryFormat(String inMemoryFormat)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.