|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.NearCacheConfig
public class NearCacheConfig
Contains configuration for an NearCache.
Nested Class Summary | |
---|---|
static class |
NearCacheConfig.LocalUpdatePolicy
Local Update Policy enum. |
Field Summary | |
---|---|
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 Summary | |
---|---|
NearCacheConfig()
|
|
NearCacheConfig(int timeToLiveSeconds,
int maxSize,
String evictionPolicy,
int maxIdleSeconds,
boolean invalidateOnChange,
InMemoryFormat inMemoryFormat)
|
|
NearCacheConfig(NearCacheConfig config)
|
|
NearCacheConfig(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public NearCacheConfig()
public NearCacheConfig(String name)
public NearCacheConfig(int timeToLiveSeconds, int maxSize, String evictionPolicy, int maxIdleSeconds, boolean invalidateOnChange, InMemoryFormat inMemoryFormat)
public NearCacheConfig(NearCacheConfig config)
Method Detail |
---|
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 void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |