public final class ClientCacheConfiguration extends Object implements Serializable
Constructor and Description |
---|
ClientCacheConfiguration()
Default constructor.
|
ClientCacheConfiguration(ClientCacheConfiguration ccfg)
Creates client cache configuration by coping all configuration properties from the given one.
|
public ClientCacheConfiguration()
public ClientCacheConfiguration(ClientCacheConfiguration ccfg)
ccfg
- Client cache configuration to copy from.public String getName()
public ClientCacheConfiguration setName(String name)
name
- New cache name.public CacheAtomicityMode getAtomicityMode()
public ClientCacheConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode)
atomicityMode
- New Atomicity mode.public int getBackups()
public ClientCacheConfiguration setBackups(int backups)
backups
- New number of backups.public CacheMode getCacheMode()
public ClientCacheConfiguration setCacheMode(CacheMode cacheMode)
cacheMode
- New cache mode.public boolean isEagerTtl()
true
, Ignite
will create a single thread to clean up expired entries in background. When flag is
set to false
, expired entries will be removed on next entry access.public ClientCacheConfiguration setEagerTtl(boolean eagerTtl)
eagerTtl
- True
if Ignite should eagerly remove expired cache entries.public String getGroupName()
Caches with the same group name share single underlying 'physical' cache (partition set), but are logically isolated. Grouping caches reduces overall overhead, since internal data structures are shared.
public ClientCacheConfiguration setGroupName(String newVal)
newVal
- Group name.public long getDefaultLockTimeout()
0
and means that lock acquisition will never timeout.public ClientCacheConfiguration setDefaultLockTimeout(long dfltLockTimeout)
dfltLockTimeout
- Default lock timeout.public PartitionLossPolicy getPartitionLossPolicy()
public ClientCacheConfiguration setPartitionLossPolicy(PartitionLossPolicy newVal)
newVal
- Partition loss policy.public boolean isReadFromBackup()
false
always get data from primary node (never from backup).public ClientCacheConfiguration setReadFromBackup(boolean readFromBackup)
readFromBackup
- Read from backup.public int getRebalanceBatchSize()
public ClientCacheConfiguration setRebalanceBatchSize(int rebalanceBatchSize)
rebalanceBatchSize
- Rebalance batch size.public long getRebalanceBatchesPrefetchCount()
public ClientCacheConfiguration setRebalanceBatchesPrefetchCount(long rebalanceBatchesPrefetchCnt)
rebalanceBatchesPrefetchCnt
- Rebalance batches prefetch count.public long getRebalanceDelay()
Default value is 0
which means that repartitioning and rebalancing will start
immediately upon node leaving topology. If -1
is returned, then rebalancing
will only be started manually.
public ClientCacheConfiguration setRebalanceDelay(long rebalanceDelay)
rebalanceDelay
- Rebalance delay.public CacheRebalanceMode getRebalanceMode()
public ClientCacheConfiguration setRebalanceMode(CacheRebalanceMode rebalanceMode)
rebalanceMode
- Rebalance mode.public int getRebalanceOrder()
SYNC
or ASYNC
rebalance modes only.
If cache rebalance order is positive, rebalancing for this cache will be started only when rebalancing for
all caches with smaller rebalance order will be completed.
Note that cache with order 0
does not participate in ordering. This means that cache with
rebalance order 0
will never wait for any other caches. All caches with order 0
will
be rebalanced right away concurrently with each other and ordered rebalance processes.
If not set, cache order is 0, i.e. rebalancing is not ordered.public ClientCacheConfiguration setRebalanceOrder(int rebalanceOrder)
rebalanceOrder
- Rebalance order.public long getRebalanceThrottle()
Default value of 0
means that throttling is disabled.
public ClientCacheConfiguration setRebalanceThrottle(long newVal)
newVal
- Rebalance throttle.public long getRebalanceTimeout()
public ClientCacheConfiguration setRebalanceTimeout(long newVal)
newVal
- Rebalance timeout.public CacheWriteSynchronizationMode getWriteSynchronizationMode()
public ClientCacheConfiguration setWriteSynchronizationMode(CacheWriteSynchronizationMode newVal)
newVal
- Write synchronization mode.public boolean isCopyOnRead()
public ClientCacheConfiguration setCopyOnRead(boolean newVal)
newVal
- Copy on read.public int getMaxConcurrentAsyncOperations()
public ClientCacheConfiguration setMaxConcurrentAsyncOperations(int newVal)
newVal
- Max concurrent async operations.public String getDataRegionName()
public ClientCacheConfiguration setDataRegionName(String newVal)
newVal
- Data region name.public boolean isStatisticsEnabled()
public ClientCacheConfiguration setStatisticsEnabled(boolean newVal)
newVal
- Statistics enabled.public int getMaxQueryIteratorsCount()
public ClientCacheConfiguration setMaxQueryIteratorsCount(int newVal)
newVal
- Max query iterators count.public boolean isOnheapCacheEnabled()
public ClientCacheConfiguration setOnheapCacheEnabled(boolean newVal)
newVal
- Onheap cache enabled.public int getQueryDetailMetricsSize()
public ClientCacheConfiguration setQueryDetailMetricsSize(int newVal)
newVal
- Query detail metrics size.public int getQueryParallelism()
public ClientCacheConfiguration setQueryParallelism(int newVal)
newVal
- Query parallelism.public boolean isSqlEscapeAll()
public ClientCacheConfiguration setSqlEscapeAll(boolean newVal)
newVal
- Sql escape all.public int getSqlIndexMaxInlineSize()
public ClientCacheConfiguration setSqlIndexMaxInlineSize(int newVal)
newVal
- Sql index max inline size.public String getSqlSchema()
public ClientCacheConfiguration setSqlSchema(String newVal)
newVal
- Sql schema.public CacheKeyConfiguration[] getKeyConfiguration()
public ClientCacheConfiguration setKeyConfiguration(CacheKeyConfiguration... newVal)
newVal
- Cache key configuration.public QueryEntity[] getQueryEntities()
public ClientCacheConfiguration setQueryEntities(QueryEntity... newVal)
newVal
- Query entities configurations.public javax.cache.expiry.ExpiryPolicy getExpiryPolicy()
public ClientCacheConfiguration setExpiryPolicy(javax.cache.expiry.ExpiryPolicy expiryPlc)
expiryPlc
- Expiry policy.public ClientCachePluginConfiguration[] getPluginConfigurations()
public ClientCacheConfiguration setPluginConfigurations(ClientCachePluginConfiguration... pluginCfgs)
pluginCfgs
- Cache plugin configurations.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024