public class CollectionConfiguration extends Object implements Serializable
Constructor and Description |
---|
CollectionConfiguration() |
Modifier and Type | Method and Description |
---|---|
CacheAtomicityMode |
getAtomicityMode() |
int |
getBackups() |
CacheMode |
getCacheMode() |
CacheMemoryMode |
getMemoryMode() |
IgnitePredicate<ClusterNode> |
getNodeFilter() |
long |
getOffHeapMaxMemory() |
boolean |
isCollocated() |
void |
setAtomicityMode(CacheAtomicityMode atomicityMode) |
void |
setBackups(int backups) |
void |
setCacheMode(CacheMode cacheMode) |
void |
setCollocated(boolean collocated) |
void |
setMemoryMode(CacheMemoryMode memoryMode) |
void |
setNodeFilter(IgnitePredicate<ClusterNode> nodeFilter) |
void |
setOffHeapMaxMemory(long offHeapMaxMemory) |
String |
toString() |
public boolean isCollocated()
True
if all items within the same collection will be collocated on the same node.public void 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.public CacheAtomicityMode getAtomicityMode()
public void setAtomicityMode(CacheAtomicityMode atomicityMode)
atomicityMode
- Cache atomicity mode.public CacheMode getCacheMode()
public void setCacheMode(CacheMode cacheMode)
cacheMode
- Cache mode.public CacheMemoryMode getMemoryMode()
public void setMemoryMode(CacheMemoryMode memoryMode)
memoryMode
- Memory mode.public IgnitePredicate<ClusterNode> getNodeFilter()
public void setNodeFilter(IgnitePredicate<ClusterNode> nodeFilter)
nodeFilter
- Predicate specifying on which nodes the cache should be started.public int getBackups()
public void setBackups(int backups)
backups
- Cache number of backups.public long getOffHeapMaxMemory()
public void setOffHeapMaxMemory(long offHeapMaxMemory)
offHeapMaxMemory
- Off-heap memory size.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016