public class QueryCacheConfig extends Object
QueryCache.| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_BATCH_SIZEBy default, after reaching this minimum size, node immediately sends buffered events to  QueryCache. | 
| static int | DEFAULT_BUFFER_SIZEBy default, only buffer last 16 events fired from a partition. | 
| static boolean | DEFAULT_COALESCEDefault value of coalesce property. | 
| static int | DEFAULT_DELAY_SECONDSDefault value of delay seconds which an event wait in the buffer of a node, before sending to  QueryCache. | 
| static InMemoryFormat | DEFAULT_IN_MEMORY_FORMATBy default, hold values of entries in  QueryCacheas binary. | 
| static boolean | DEFAULT_INCLUDE_VALUEBy default, also cache values of entries besides keys. | 
| static boolean | DEFAULT_POPULATEBy default, execute an initial population query prior to creation of the  QueryCache. | 
| Constructor and Description | 
|---|
| QueryCacheConfig() | 
| QueryCacheConfig(QueryCacheConfig other) | 
| QueryCacheConfig(String name) | 
| Modifier and Type | Method and Description | 
|---|---|
| QueryCacheConfig | addEntryListenerConfig(EntryListenerConfig listenerConfig)Adds  EntryListenerConfigto thisQueryCacheConfig. | 
| QueryCacheConfig | addIndexConfig(MapIndexConfig mapIndexConfig) | 
| com.hazelcast.config.QueryCacheConfigReadOnly | getAsReadOnly() | 
| int | getBatchSize()After reaching this size, node sends buffered events to  QueryCache. | 
| int | getBufferSize()Returns the maximum number of events which can be stored in a buffer of partition. | 
| int | getDelaySeconds()Returns the minimum number of delay seconds which an event waits in the buffer of node
 before sending to a  QueryCache | 
| List<EntryListenerConfig> | getEntryListenerConfigs() | 
| EvictionConfig | getEvictionConfig()Returns  EvictionConfiginstance for thisQueryCache | 
| List<MapIndexConfig> | getIndexConfigs() | 
| InMemoryFormat | getInMemoryFormat()Returns memory format of values of entries in  QueryCache. | 
| String | getName()Returns the name of  QueryCache. | 
| PredicateConfig | getPredicateConfig()Returns the predicate of  QueryCache. | 
| boolean | isCoalesce()Returns  trueif coalescing is is enabled, otherwise returnsfalse. | 
| boolean | isIncludeValue()Returns  trueif value caching enabled, otherwise returnsfalse. | 
| boolean | isPopulate()Returns  trueif initial population ofQueryCacheis enabled, otherwise returnsfalse. | 
| QueryCacheConfig | setBatchSize(int batchSize)Sets the batch size which will be used to determine number of events to be sent in a batch to  QueryCache | 
| QueryCacheConfig | setBufferSize(int bufferSize)Sets the maximum number of events which can be stored in a buffer of partition. | 
| void | setCoalesce(boolean coalesce)Set  trueto enable coalescing, otherwise setfalse. | 
| QueryCacheConfig | setDelaySeconds(int delaySeconds)Sets the minimum number of delay seconds which an event waits in the buffer of node
 before sending to a  QueryCache | 
| QueryCacheConfig | setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs) | 
| QueryCacheConfig | setEvictionConfig(EvictionConfig evictionConfig)Sets the  EvictionConfiginstance for thisQueryCache | 
| QueryCacheConfig | setIncludeValue(boolean includeValue)Set  trueto enable value caching, otherwise setfalse. | 
| QueryCacheConfig | setIndexConfigs(List<MapIndexConfig> indexConfigs) | 
| QueryCacheConfig | setInMemoryFormat(InMemoryFormat inMemoryFormat)Sets memory format of values of entries in  QueryCache. | 
| QueryCacheConfig | setName(String name)Sets the name of  QueryCache. | 
| QueryCacheConfig | setPopulate(boolean populate)Set  trueto enable initial population, otherwise setfalse. | 
| QueryCacheConfig | setPredicateConfig(PredicateConfig predicateConfig)Sets the predicate of  QueryCache. | 
| String | toString() | 
public static final int DEFAULT_BATCH_SIZE
QueryCache.public static final int DEFAULT_BUFFER_SIZE
public static final int DEFAULT_DELAY_SECONDS
QueryCache.public static final boolean DEFAULT_INCLUDE_VALUE
public static final boolean DEFAULT_POPULATE
QueryCache.public static final boolean DEFAULT_COALESCE
public static final InMemoryFormat DEFAULT_IN_MEMORY_FORMAT
QueryCache as binary.public QueryCacheConfig()
public QueryCacheConfig(String name)
public QueryCacheConfig(QueryCacheConfig other)
public com.hazelcast.config.QueryCacheConfigReadOnly getAsReadOnly()
public String getName()
QueryCache.QueryCache.public QueryCacheConfig setName(String name)
QueryCache.name - the name of QueryCache.QueryCacheConfig instance.public PredicateConfig getPredicateConfig()
QueryCache.QueryCache.public QueryCacheConfig setPredicateConfig(PredicateConfig predicateConfig)
QueryCache.predicateConfig - config for predicate.QueryCacheConfig instance.public int getBatchSize()
QueryCache.public QueryCacheConfig setBatchSize(int batchSize)
QueryCachebatchSize - the batch size.QueryCacheConfig instance.public int getBufferSize()
public QueryCacheConfig setBufferSize(int bufferSize)
bufferSize - the buffer size.QueryCacheConfig instance.public int getDelaySeconds()
QueryCachepublic QueryCacheConfig setDelaySeconds(int delaySeconds)
QueryCachedelaySeconds - the delay seconds.QueryCacheConfig instance.public InMemoryFormat getInMemoryFormat()
QueryCache.
 
 Default value is binary.QueryCache.public QueryCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
QueryCache.
 
 Default value is binary.inMemoryFormat - the memory formatQueryCacheConfig instance.public boolean isIncludeValue()
true if value caching enabled, otherwise returns false.public QueryCacheConfig setIncludeValue(boolean includeValue)
includeValue - Set true if value caching is enabled, otherwise set false.QueryCacheConfig instance.public boolean isPopulate()
true if initial population of QueryCache is enabled, otherwise returns false.
 * 
 Default value is true.true if initial population of QueryCache is enabled, otherwise returns false.public QueryCacheConfig setPopulate(boolean populate)
populate - set true to enable initial population, otherwise set falseQueryCacheConfig instance.public boolean isCoalesce()
true if coalescing is is enabled, otherwise returns false.setCoalesce(boolean)public void setCoalesce(boolean coalesce)
true to enable coalescing, otherwise set false.
 This setting is only valid if QueryCacheConfig#delaySeconds is greater than 0.
 
 Default value is false.coalesce - set true to enable, otherwise set falsepublic EvictionConfig getEvictionConfig()
EvictionConfig instance for this QueryCacheEvictionConfig instance for this QueryCache.public QueryCacheConfig setEvictionConfig(EvictionConfig evictionConfig)
EvictionConfig instance for this QueryCacheevictionConfig - the EvictionConfig instance for eviction configuration to setQueryCacheConfig instance.public QueryCacheConfig addEntryListenerConfig(EntryListenerConfig listenerConfig)
EntryListenerConfig to this QueryCacheConfig.listenerConfig - the EntryListenerConfig to addQueryCacheConfig instance.public List<EntryListenerConfig> getEntryListenerConfigs()
public QueryCacheConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
public QueryCacheConfig addIndexConfig(MapIndexConfig mapIndexConfig)
public List<MapIndexConfig> getIndexConfigs()
public QueryCacheConfig setIndexConfigs(List<MapIndexConfig> indexConfigs)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.