Package org.apache.ignite.configuration
Class CollectionConfiguration
- java.lang.Object
- 
- org.apache.ignite.configuration.CollectionConfiguration
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class CollectionConfiguration extends Object implements Serializable Configuration for Ignite collections.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description CollectionConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CacheAtomicityModegetAtomicityMode()intgetBackups()CacheModegetCacheMode()StringgetGroupName()IgnitePredicate<ClusterNode>getNodeFilter()longgetOffHeapMaxMemory()Deprecated.No longer used.booleanisCollocated()CollectionConfigurationsetAtomicityMode(CacheAtomicityMode atomicityMode)CollectionConfigurationsetBackups(int backups)CollectionConfigurationsetCacheMode(CacheMode cacheMode)CollectionConfigurationsetCollocated(boolean collocated)CollectionConfigurationsetGroupName(String grpName)CollectionConfigurationsetNodeFilter(IgnitePredicate<ClusterNode> nodeFilter)CollectionConfigurationsetOffHeapMaxMemory(long offHeapMaxMemory)Deprecated.No longer used.StringtoString()
 
- 
- 
- 
Method Detail- 
isCollocatedpublic boolean isCollocated() - Returns:
- Trueif all items within the same collection will be collocated on the same node.
 
 - 
setCollocatedpublic CollectionConfiguration setCollocated(boolean collocated) - Parameters:
- collocated- 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 CollectionConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode) - Parameters:
- atomicityMode- Cache atomicity mode.
- Returns:
- thisfor chaining.
 
 - 
getCacheModepublic CacheMode getCacheMode() - Returns:
- Cache mode.
 
 - 
setCacheModepublic CollectionConfiguration setCacheMode(CacheMode cacheMode) - Parameters:
- cacheMode- Cache mode.
- Returns:
- thisfor chaining.
 
 - 
getNodeFilterpublic IgnitePredicate<ClusterNode> getNodeFilter() - Returns:
- Predicate specifying on which nodes the cache should be started.
 
 - 
setNodeFilterpublic CollectionConfiguration setNodeFilter(IgnitePredicate<ClusterNode> nodeFilter) - Parameters:
- nodeFilter- Predicate specifying on which nodes the cache should be started.
- Returns:
- thisfor chaining.
 
 - 
getBackupspublic int getBackups() - Returns:
- Number of backups.
 
 - 
setBackupspublic CollectionConfiguration setBackups(int backups) - Parameters:
- backups- Cache number of backups.
- Returns:
- thisfor chaining.
 
 - 
getOffHeapMaxMemory@Deprecated public long getOffHeapMaxMemory() Deprecated.No longer used.- Returns:
- Off-heap memory size.
 
 - 
setOffHeapMaxMemory@Deprecated public CollectionConfiguration setOffHeapMaxMemory(long offHeapMaxMemory) Deprecated.No longer used.- Parameters:
- offHeapMaxMemory- Off-heap memory size.
- Returns:
- thisfor chaining.
 
 - 
getGroupNamepublic String getGroupName() - Returns:
- Group name.
 
 - 
setGroupNamepublic CollectionConfiguration setGroupName(String grpName) - Parameters:
- grpName- Group name.
- Returns:
- thisfor chaining.
 
 
- 
 
-