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()
Deprecated.
No longer used.
|
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)
Deprecated.
No longer used.
|
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.@Deprecated public long getOffHeapMaxMemory()
@Deprecated 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.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024