Class ClientCollectionConfiguration


  • public class ClientCollectionConfiguration
    extends Object
    Configuration for Ignite collections.
    • Constructor Detail

      • ClientCollectionConfiguration

        public ClientCollectionConfiguration()
    • Method Detail

      • isColocated

        public boolean isColocated()
        Returns:
        True if all items within the same collection will be collocated on the same node.
      • setColocated

        public ClientCollectionConfiguration setColocated​(boolean colocated)
        Parameters:
        colocated - 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.
        Returns:
        this for chaining.
      • getAtomicityMode

        public CacheAtomicityMode getAtomicityMode()
        Returns:
        Cache atomicity mode.
      • getCacheMode

        public CacheMode getCacheMode()
        Returns:
        Cache mode.
      • getBackups

        public int getBackups()
        Returns:
        Number of backups.
      • setBackups

        public ClientCollectionConfiguration setBackups​(int backups)
        Parameters:
        backups - Cache number of backups.
        Returns:
        this for chaining.
      • getGroupName

        public String getGroupName()
        Returns:
        Group name.