com.hazelcast.config
Class NearCacheConfig

java.lang.Object
  extended by com.hazelcast.config.NearCacheConfig

public class NearCacheConfig
extends Object


Field Summary
static String DEFAULT_EVICTION_POLICY
           
static int DEFAULT_MAX_IDLE_SECONDS
           
static int DEFAULT_MAX_SIZE
           
static int DEFAULT_TTL_SECONDS
           
 
Constructor Summary
NearCacheConfig()
           
NearCacheConfig(int timeToLiveSeconds, int maxSize, String evictionPolicy, int maxIdleSeconds, boolean invalidateOnChange)
           
 
Method Summary
 String getEvictionPolicy()
           
 int getMaxIdleSeconds()
           
 int getMaxSize()
           
 int getTimeToLiveSeconds()
           
 boolean isInvalidateOnChange()
           
 NearCacheConfig setEvictionPolicy(String evictionPolicy)
           
 NearCacheConfig setInvalidateOnChange(boolean invalidateOnChange)
           
 NearCacheConfig setMaxIdleSeconds(int maxIdleSeconds)
           
 NearCacheConfig setMaxSize(int maxSize)
           
 NearCacheConfig setTimeToLiveSeconds(int timeToLiveSeconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TTL_SECONDS

public static final int DEFAULT_TTL_SECONDS
See Also:
Constant Field Values

DEFAULT_MAX_IDLE_SECONDS

public static final int DEFAULT_MAX_IDLE_SECONDS
See Also:
Constant Field Values

DEFAULT_MAX_SIZE

public static final int DEFAULT_MAX_SIZE
See Also:
Constant Field Values

DEFAULT_EVICTION_POLICY

public static final String DEFAULT_EVICTION_POLICY
See Also:
Constant Field Values
Constructor Detail

NearCacheConfig

public NearCacheConfig(int timeToLiveSeconds,
                       int maxSize,
                       String evictionPolicy,
                       int maxIdleSeconds,
                       boolean invalidateOnChange)

NearCacheConfig

public NearCacheConfig()
Method Detail

getTimeToLiveSeconds

public int getTimeToLiveSeconds()

setTimeToLiveSeconds

public NearCacheConfig setTimeToLiveSeconds(int timeToLiveSeconds)

getMaxSize

public int getMaxSize()

setMaxSize

public NearCacheConfig setMaxSize(int maxSize)

getEvictionPolicy

public String getEvictionPolicy()

setEvictionPolicy

public NearCacheConfig setEvictionPolicy(String evictionPolicy)

getMaxIdleSeconds

public int getMaxIdleSeconds()

setMaxIdleSeconds

public NearCacheConfig setMaxIdleSeconds(int maxIdleSeconds)

isInvalidateOnChange

public boolean isInvalidateOnChange()

setInvalidateOnChange

public NearCacheConfig setInvalidateOnChange(boolean invalidateOnChange)


Copyright 2008-2012 Hazel Ltd. All Rights Reserved.