Package org.apache.ignite.client
Class ClientAtomicConfiguration
- java.lang.Object
- 
- org.apache.ignite.client.ClientAtomicConfiguration
 
- 
 public class ClientAtomicConfiguration extends Object Configuration for atomic data structures.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDFLT_ATOMIC_SEQUENCE_RESERVE_SIZEDefault atomic sequence reservation size.static intDFLT_BACKUPSDefault number of backups.static CacheModeDFLT_CACHE_MODECache mode.
 - 
Constructor SummaryConstructors Constructor Description ClientAtomicConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAtomicSequenceReserveSize()Gets default number of sequence values reserved forIgniteAtomicSequenceinstances.intgetBackups()Gets the number of backup nodes.CacheModegetCacheMode()Gets the cache mode.StringgetGroupName()Sets the cache group name.ClientAtomicConfigurationsetAtomicSequenceReserveSize(int seqReserveSize)Sets default number of sequence values reserved forIgniteAtomicSequenceinstances.ClientAtomicConfigurationsetBackups(int backups)Sets the number of backup nodes.ClientAtomicConfigurationsetCacheMode(CacheMode cacheMode)Sets the cache mode.ClientAtomicConfigurationsetGroupName(String grpName)Gets the cache group name.StringtoString()
 
- 
- 
- 
Field Detail- 
DFLT_BACKUPSpublic static final int DFLT_BACKUPS Default number of backups.- See Also:
- Constant Field Values
 
 - 
DFLT_CACHE_MODEpublic static final CacheMode DFLT_CACHE_MODE Cache mode.
 - 
DFLT_ATOMIC_SEQUENCE_RESERVE_SIZEpublic static final int DFLT_ATOMIC_SEQUENCE_RESERVE_SIZE Default atomic sequence reservation size.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getBackupspublic int getBackups() Gets the number of backup nodes.- Returns:
- Number of backup nodes.
 
 - 
setBackupspublic ClientAtomicConfiguration setBackups(int backups) Sets the number of backup nodes.- Parameters:
- backups- Number of backup nodes.
- Returns:
- thisfor chaining.
 
 - 
getCacheModepublic CacheMode getCacheMode() Gets the cache mode.- Returns:
- Cache mode.
 
 - 
setCacheModepublic ClientAtomicConfiguration setCacheMode(CacheMode cacheMode) Sets the cache mode.- Parameters:
- cacheMode- Cache mode.
- Returns:
- thisfor chaining.
 
 - 
getAtomicSequenceReserveSizepublic int getAtomicSequenceReserveSize() Gets default number of sequence values reserved forIgniteAtomicSequenceinstances. 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.- Returns:
- Atomic sequence reservation size.
 
 - 
setAtomicSequenceReserveSizepublic ClientAtomicConfiguration setAtomicSequenceReserveSize(int seqReserveSize) Sets default number of sequence values reserved forIgniteAtomicSequenceinstances. 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.- Parameters:
- seqReserveSize- Atomic sequence reservation size.
- Returns:
- thisfor chaining.
- See Also:
- getAtomicSequenceReserveSize()
 
 - 
getGroupNamepublic String getGroupName() Sets the cache group name.- Returns:
- Cache group name.
 
 - 
setGroupNamepublic ClientAtomicConfiguration setGroupName(String grpName) Gets the cache group name.- Parameters:
- grpName- Cache group name.
- Returns:
- thisfor chaining.
 
 
- 
 
-