public class CollectionConfiguration extends Object implements Serializable
| Constructor and Description |
|---|
CollectionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CacheAtomicityMode |
getAtomicityMode() |
int |
getBackups() |
CacheMode |
getCacheMode() |
String |
getGroupName() |
IgnitePredicate<ClusterNode> |
getNodeFilter() |
long |
getOffHeapMaxMemory() |
boolean |
isCollocated() |
CollectionConfiguration |
setAtomicityMode(CacheAtomicityMode atomicityMode) |
CollectionConfiguration |
setBackups(int backups) |
CollectionConfiguration |
setCacheMode(CacheMode cacheMode) |
CollectionConfiguration |
setCollocated(boolean collocated) |
CollectionConfiguration |
setGroupName(String grpName) |
CollectionConfiguration |
setNodeFilter(IgnitePredicate<ClusterNode> nodeFilter) |
CollectionConfiguration |
setOffHeapMaxMemory(long offHeapMaxMemory) |
String |
toString() |
public boolean isCollocated()
True if all items within the same collection will be collocated on the same node.public CollectionConfiguration setCollocated(boolean collocated)
collocated - 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 CollectionConfiguration setAtomicityMode(CacheAtomicityMode atomicityMode)
atomicityMode - Cache atomicity mode.this for chaining.public CacheMode getCacheMode()
public CollectionConfiguration setCacheMode(CacheMode cacheMode)
cacheMode - Cache mode.this for chaining.public IgnitePredicate<ClusterNode> getNodeFilter()
public CollectionConfiguration setNodeFilter(IgnitePredicate<ClusterNode> nodeFilter)
nodeFilter - Predicate specifying on which nodes the cache should be started.this for chaining.public int getBackups()
public CollectionConfiguration setBackups(int backups)
backups - Cache number of backups.this for chaining.public long getOffHeapMaxMemory()
public CollectionConfiguration setOffHeapMaxMemory(long offHeapMaxMemory)
offHeapMaxMemory - Off-heap memory size.this for chaining.public String getGroupName()
public CollectionConfiguration setGroupName(String grpName)
grpName - Group name.this for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019