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.this
for chaining.public CacheAtomicityMode getAtomicityMode()
public ClientCacheConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode)
atomicityMode
- New Atomicity mode.this
for chaining.public int getBackups()
public ClientCacheConfiguration setBackups(int backups)
backups
- New number of backups.this
for chaining.public CacheMode getCacheMode()
public ClientCacheConfiguration setCacheMode(CacheMode cacheMode)
cacheMode
- New cache mode.this
for chaining.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.this
for chaining.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.
this
for chaining.public ClientCacheConfiguration setGroupName(String newVal)
newVal
- Group name.this
for chaining.@Deprecated public long getDefaultLockTimeout()
0
and means that lock acquisition will never timeout.@Deprecated public ClientCacheConfiguration setDefaultLockTimeout(long dfltLockTimeout)
dfltLockTimeout
- Default lock timeout.this
for chaining.public PartitionLossPolicy getPartitionLossPolicy()
public ClientCacheConfiguration setPartitionLossPolicy(PartitionLossPolicy newVal)
newVal
- Partition loss policy.this
for chaining.public boolean isReadFromBackup()
false
always get data from primary node (never from backup).public ClientCacheConfiguration setReadFromBackup(boolean readFromBackup)
readFromBackup
- Read from backup.this
for chaining.@Deprecated public int getRebalanceBatchSize()
IgniteConfiguration.getRebalanceBatchSize()
instead.@Deprecated public ClientCacheConfiguration setRebalanceBatchSize(int rebalanceBatchSize)
IgniteConfiguration.setRebalanceBatchSize(int)
instead.rebalanceBatchSize
- Rebalance batch size.this
for chaining.@Deprecated public long getRebalanceBatchesPrefetchCount()
IgniteConfiguration.getRebalanceBatchesPrefetchCount()
instead@Deprecated public ClientCacheConfiguration setRebalanceBatchesPrefetchCount(long rebalanceBatchesPrefetchCnt)
IgniteConfiguration.getRebalanceBatchesPrefetchCount()
insteadrebalanceBatchesPrefetchCnt
- Rebalance batches prefetch count.this
for chaining.@Deprecated 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.
@Deprecated public ClientCacheConfiguration setRebalanceDelay(long rebalanceDelay)
rebalanceDelay
- Rebalance delay.this
for chaining.public CacheRebalanceMode getRebalanceMode()
this
for chaining.public ClientCacheConfiguration setRebalanceMode(CacheRebalanceMode rebalanceMode)
rebalanceMode
- Rebalance mode.this
for chaining.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.this
for chaining.@Deprecated public long getRebalanceThrottle()
IgniteConfiguration.getRebalanceThrottle()
instead.
Default value of 0
means that throttling is disabled.
@Deprecated public ClientCacheConfiguration setRebalanceThrottle(long newVal)
IgniteConfiguration.setRebalanceThrottle(long)
instead.newVal
- Rebalance throttle.this
for chaining.@Deprecated public long getRebalanceTimeout()
IgniteConfiguration.getRebalanceTimeout()
instead.@Deprecated public ClientCacheConfiguration setRebalanceTimeout(long newVal)
IgniteConfiguration.getRebalanceTimeout()
instead.newVal
- Rebalance timeout.this
for chaining.public CacheWriteSynchronizationMode getWriteSynchronizationMode()
public ClientCacheConfiguration setWriteSynchronizationMode(CacheWriteSynchronizationMode newVal)
newVal
- Write synchronization mode.this
for chaining.public boolean isCopyOnRead()
public ClientCacheConfiguration setCopyOnRead(boolean newVal)
newVal
- Copy on read.this
for chaining.public int getMaxConcurrentAsyncOperations()
public ClientCacheConfiguration setMaxConcurrentAsyncOperations(int newVal)
newVal
- Max concurrent async operations.this
for chaining.public String getDataRegionName()
public ClientCacheConfiguration setDataRegionName(String newVal)
newVal
- Data region name.this
for chaining.public boolean isStatisticsEnabled()
public ClientCacheConfiguration setStatisticsEnabled(boolean newVal)
newVal
- Statistics enabled.this
for chaining.public int getMaxQueryIteratorsCount()
public ClientCacheConfiguration setMaxQueryIteratorsCount(int newVal)
newVal
- Max query iterators count.this
for chaining.public boolean isOnheapCacheEnabled()
public ClientCacheConfiguration setOnheapCacheEnabled(boolean newVal)
newVal
- Onheap cache enabled.this
for chaining.public int getQueryDetailMetricsSize()
public ClientCacheConfiguration setQueryDetailMetricsSize(int newVal)
newVal
- Query detail metrics size.this
for chaining.public int getQueryParallelism()
public ClientCacheConfiguration setQueryParallelism(int newVal)
newVal
- Query parallelism.this
for chaining.public boolean isSqlEscapeAll()
public ClientCacheConfiguration setSqlEscapeAll(boolean newVal)
newVal
- Sql escape all.this
for chaining.public int getSqlIndexMaxInlineSize()
public ClientCacheConfiguration setSqlIndexMaxInlineSize(int newVal)
newVal
- Sql index max inline size.this
for chaining.public String getSqlSchema()
public ClientCacheConfiguration setSqlSchema(String newVal)
newVal
- Sql schema.this
for chaining.public CacheKeyConfiguration[] getKeyConfiguration()
public ClientCacheConfiguration setKeyConfiguration(CacheKeyConfiguration... newVal)
newVal
- Cache key configuration.this
for chaining.public QueryEntity[] getQueryEntities()
public ClientCacheConfiguration setQueryEntities(QueryEntity... newVal)
newVal
- Query entities configurations.this
for chaining.public javax.cache.expiry.ExpiryPolicy getExpiryPolicy()
public ClientCacheConfiguration setExpiryPolicy(javax.cache.expiry.ExpiryPolicy expiryPlc)
expiryPlc
- Expiry policy.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023