public class ClientCollectionConfiguration extends Object
Constructor and Description |
---|
ClientCollectionConfiguration() |
Modifier and Type | Method and Description |
---|---|
CacheAtomicityMode |
getAtomicityMode() |
int |
getBackups() |
CacheMode |
getCacheMode() |
String |
getGroupName() |
boolean |
isColocated() |
ClientCollectionConfiguration |
setAtomicityMode(CacheAtomicityMode atomicityMode) |
ClientCollectionConfiguration |
setBackups(int backups) |
ClientCollectionConfiguration |
setCacheMode(CacheMode cacheMode) |
ClientCollectionConfiguration |
setColocated(boolean colocated) |
ClientCollectionConfiguration |
setGroupName(String grpName) |
String |
toString() |
public boolean isColocated()
True
if all items within the same collection will be collocated on the same node.public ClientCollectionConfiguration setColocated(boolean colocated)
colocated
- If true
then all items within the same collection will be collocated on the same node.
Otherwise elements of the same set maybe be cached on different nodes. This parameter works only
collections stored in CacheMode.PARTITIONED
cache.this
for chaining.public CacheAtomicityMode getAtomicityMode()
public ClientCollectionConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode)
atomicityMode
- Cache atomicity mode.this
for chaining.public CacheMode getCacheMode()
public ClientCollectionConfiguration setCacheMode(CacheMode cacheMode)
cacheMode
- Cache mode.this
for chaining.public int getBackups()
public ClientCollectionConfiguration setBackups(int backups)
backups
- Cache number of backups.this
for chaining.public String getGroupName()
public ClientCollectionConfiguration setGroupName(String grpName)
grpName
- Group name.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023