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 Summary
Constructors Constructor Description ClientCollectionConfiguration()
-
Method Summary
All 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
-
isColocated
public boolean isColocated()
- Returns:
Trueif all items within the same collection will be collocated on the same node.
-
setColocated
public ClientCollectionConfiguration setColocated(boolean colocated)
- Parameters:
colocated- Iftruethen 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 inCacheMode.PARTITIONEDcache.- Returns:
thisfor chaining.
-
getAtomicityMode
public CacheAtomicityMode getAtomicityMode()
- Returns:
- Cache atomicity mode.
-
setAtomicityMode
public ClientCollectionConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode)
- Parameters:
atomicityMode- Cache atomicity mode.- Returns:
thisfor chaining.
-
getCacheMode
public CacheMode getCacheMode()
- Returns:
- Cache mode.
-
setCacheMode
public ClientCollectionConfiguration setCacheMode(CacheMode cacheMode)
- Parameters:
cacheMode- Cache mode.- Returns:
thisfor chaining.
-
getBackups
public int getBackups()
- Returns:
- Number of backups.
-
setBackups
public ClientCollectionConfiguration setBackups(int backups)
- Parameters:
backups- Cache number of backups.- Returns:
thisfor chaining.
-
getGroupName
public String getGroupName()
- Returns:
- Group name.
-
setGroupName
public ClientCollectionConfiguration setGroupName(String grpName)
- Parameters:
grpName- Group name.- Returns:
thisfor chaining.
-
-