public class QueryCacheConfigReadOnly extends QueryCacheConfig
QueryCacheConfig
DEFAULT_BATCH_SIZE, DEFAULT_BUFFER_SIZE, DEFAULT_COALESCE, DEFAULT_DELAY_SECONDS, DEFAULT_IN_MEMORY_FORMAT, DEFAULT_INCLUDE_VALUE, DEFAULT_POPULATE
Constructor and Description |
---|
QueryCacheConfigReadOnly(QueryCacheConfig other) |
Modifier and Type | Method and Description |
---|---|
QueryCacheConfig |
addIndexConfig(IndexConfig indexConfig) |
List<EntryListenerConfig> |
getEntryListenerConfigs() |
EvictionConfig |
getEvictionConfig()
Returns
EvictionConfig instance for this QueryCache |
List<IndexConfig> |
getIndexConfigs() |
PredicateConfig |
getPredicateConfig()
Returns the predicate of
QueryCache . |
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.
|
QueryCacheConfig |
setCoalesce(boolean coalesce)
Set
true to enable coalescing, otherwise set false . |
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
EvictionConfig instance for this QueryCache |
QueryCacheConfig |
setIncludeValue(boolean includeValue)
Set
true to enable value caching, otherwise set false |
QueryCacheConfig |
setIndexConfigs(List<IndexConfig> 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
true to enable initial population, otherwise set false . |
QueryCacheConfig |
setPredicateConfig(PredicateConfig predicateConfig)
Sets the predicate of
QueryCache . |
addEntryListenerConfig, equals, getBatchSize, getBufferSize, getClassId, getDelaySeconds, getFactoryId, getInMemoryFormat, getName, hashCode, isCoalesce, isIncludeValue, isPopulate, readData, toString, writeData
public QueryCacheConfigReadOnly(QueryCacheConfig other)
public List<IndexConfig> getIndexConfigs()
getIndexConfigs
in class QueryCacheConfig
public List<EntryListenerConfig> getEntryListenerConfigs()
getEntryListenerConfigs
in class QueryCacheConfig
public EvictionConfig getEvictionConfig()
QueryCacheConfig
EvictionConfig
instance for this QueryCache
getEvictionConfig
in class QueryCacheConfig
EvictionConfig
instance for this QueryCache
public PredicateConfig getPredicateConfig()
QueryCacheConfig
QueryCache
.getPredicateConfig
in class QueryCacheConfig
QueryCache
public QueryCacheConfig setBatchSize(int batchSize)
QueryCacheConfig
QueryCache
setBatchSize
in class QueryCacheConfig
batchSize
- the batch sizeQueryCacheConfig
instancepublic QueryCacheConfig setBufferSize(int bufferSize)
QueryCacheConfig
setBufferSize
in class QueryCacheConfig
bufferSize
- the buffer sizeQueryCacheConfig
instancepublic QueryCacheConfig setDelaySeconds(int delaySeconds)
QueryCacheConfig
QueryCache
setDelaySeconds
in class QueryCacheConfig
delaySeconds
- the delay secondsQueryCacheConfig
instancepublic QueryCacheConfig setEntryListenerConfigs(List<EntryListenerConfig> listenerConfigs)
setEntryListenerConfigs
in class QueryCacheConfig
public QueryCacheConfig setEvictionConfig(EvictionConfig evictionConfig)
QueryCacheConfig
EvictionConfig
instance for this QueryCache
setEvictionConfig
in class QueryCacheConfig
evictionConfig
- the EvictionConfig
instance for eviction configuration to setQueryCacheConfig
instancepublic QueryCacheConfig setIncludeValue(boolean includeValue)
QueryCacheConfig
setIncludeValue
in class QueryCacheConfig
includeValue
- Set true
if value caching is enabled, otherwise set false
QueryCacheConfig
instancepublic QueryCacheConfig setInMemoryFormat(InMemoryFormat inMemoryFormat)
QueryCacheConfig
QueryCache
.
Default value is binary.
setInMemoryFormat
in class QueryCacheConfig
inMemoryFormat
- the memory formatQueryCacheConfig
instancepublic QueryCacheConfig setName(String name)
QueryCacheConfig
QueryCache
.setName
in class QueryCacheConfig
name
- the name of QueryCache
QueryCacheConfig
instancepublic QueryCacheConfig setPredicateConfig(PredicateConfig predicateConfig)
QueryCacheConfig
QueryCache
.setPredicateConfig
in class QueryCacheConfig
predicateConfig
- config for predicateQueryCacheConfig
instancepublic QueryCacheConfig setPopulate(boolean populate)
QueryCacheConfig
setPopulate
in class QueryCacheConfig
populate
- set true
to enable initial population, otherwise set false
QueryCacheConfig
instancepublic QueryCacheConfig setCoalesce(boolean coalesce)
QueryCacheConfig
true
to enable coalescing, otherwise set false
.
This setting is only valid if QueryCacheConfig#delaySeconds
is greater than 0.
Default value is false.
setCoalesce
in class QueryCacheConfig
coalesce
- set true
to enable, otherwise set false
public QueryCacheConfig addIndexConfig(IndexConfig indexConfig)
addIndexConfig
in class QueryCacheConfig
public QueryCacheConfig setIndexConfigs(List<IndexConfig> indexConfigs)
setIndexConfigs
in class QueryCacheConfig
Copyright © 2019 Hazelcast, Inc.. All rights reserved.