public class AtomicConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_ATOMIC_SEQUENCE_RESERVE_SIZE
Default atomic sequence reservation size.
|
static int |
DFLT_BACKUPS |
static CacheMode |
DFLT_CACHE_MODE |
Constructor and Description |
---|
AtomicConfiguration() |
Modifier and Type | Method and Description |
---|---|
AffinityFunction |
getAffinity()
Gets atomic cache affinity function.
|
int |
getAtomicSequenceReserveSize()
Gets default number of sequence values reserved for
IgniteAtomicSequence instances. |
int |
getBackups() |
CacheMode |
getCacheMode() |
String |
getGroupName() |
AtomicConfiguration |
setAffinity(AffinityFunction aff)
Sets atomic cache affinity function.
|
AtomicConfiguration |
setAtomicSequenceReserveSize(int seqReserveSize)
Sets default number of sequence values reserved for
IgniteAtomicSequence instances. |
AtomicConfiguration |
setBackups(int backups) |
AtomicConfiguration |
setCacheMode(CacheMode cacheMode) |
AtomicConfiguration |
setGroupName(String grpName) |
String |
toString() |
public static final int DFLT_BACKUPS
public static final CacheMode DFLT_CACHE_MODE
public static final int DFLT_ATOMIC_SEQUENCE_RESERVE_SIZE
public int getBackups()
public AtomicConfiguration setBackups(int backups)
backups
- Number of backup nodes.this
for chaining.public CacheMode getCacheMode()
public AtomicConfiguration setCacheMode(CacheMode cacheMode)
cacheMode
- Cache mode.this
for chaining.public int getAtomicSequenceReserveSize()
IgniteAtomicSequence
instances. After
a certain number has been reserved, consequent increments of sequence will happen locally,
without communication with other nodes, until the next reservation has to be made.
Default value is DFLT_ATOMIC_SEQUENCE_RESERVE_SIZE
.
public AtomicConfiguration setAtomicSequenceReserveSize(int seqReserveSize)
IgniteAtomicSequence
instances. After a certain
number has been reserved, consequent increments of sequence will happen locally, without communication with other
nodes, until the next reservation has to be made.seqReserveSize
- Atomic sequence reservation size.this
for chaining.getAtomicSequenceReserveSize()
public AffinityFunction getAffinity()
public AtomicConfiguration setAffinity(AffinityFunction aff)
aff
- Affinity function.this
for chaining.public String getGroupName()
public AtomicConfiguration setGroupName(String grpName)
grpName
- Group name.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023