Package org.apache.ignite.client
Class ClientCollectionConfiguration
- java.lang.Object
- 
- org.apache.ignite.client.ClientCollectionConfiguration
 
- 
 public class ClientCollectionConfiguration extends Object Configuration for Ignite collections.
- 
- 
Constructor SummaryConstructors Constructor Description ClientCollectionConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheAtomicityModegetAtomicityMode()intgetBackups()CacheModegetCacheMode()StringgetGroupName()booleanisColocated()ClientCollectionConfigurationsetAtomicityMode(CacheAtomicityMode atomicityMode)ClientCollectionConfigurationsetBackups(int backups)ClientCollectionConfigurationsetCacheMode(CacheMode cacheMode)ClientCollectionConfigurationsetColocated(boolean colocated)ClientCollectionConfigurationsetGroupName(String grpName)StringtoString()
 
- 
- 
- 
Method Detail- 
isColocatedpublic boolean isColocated() - Returns:
- Trueif all items within the same collection will be collocated on the same node.
 
 - 
setColocatedpublic ClientCollectionConfiguration setColocated(boolean colocated) - Parameters:
- colocated- If- truethen 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.PARTITIONEDcache.
- Returns:
- thisfor chaining.
 
 - 
getAtomicityModepublic CacheAtomicityMode getAtomicityMode() - Returns:
- Cache atomicity mode.
 
 - 
setAtomicityModepublic ClientCollectionConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode) - Parameters:
- atomicityMode- Cache atomicity mode.
- Returns:
- thisfor chaining.
 
 - 
getCacheModepublic CacheMode getCacheMode() - Returns:
- Cache mode.
 
 - 
setCacheModepublic ClientCollectionConfiguration setCacheMode(CacheMode cacheMode) - Parameters:
- cacheMode- Cache mode.
- Returns:
- thisfor chaining.
 
 - 
getBackupspublic int getBackups() - Returns:
- Number of backups.
 
 - 
setBackupspublic ClientCollectionConfiguration setBackups(int backups) - Parameters:
- backups- Cache number of backups.
- Returns:
- thisfor chaining.
 
 - 
getGroupNamepublic String getGroupName() - Returns:
- Group name.
 
 - 
setGroupNamepublic ClientCollectionConfiguration setGroupName(String grpName) - Parameters:
- grpName- Group name.
- Returns:
- thisfor chaining.
 
 
- 
 
-