Class CollectionConfiguration

    • Constructor Detail

      • CollectionConfiguration

        public CollectionConfiguration()
    • Method Detail

      • isCollocated

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

        public CollectionConfiguration setCollocated​(boolean collocated)
        Parameters:
        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.
        Returns:
        this for chaining.
      • getAtomicityMode

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

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

        public IgnitePredicate<ClusterNode> getNodeFilter()
        Returns:
        Predicate specifying on which nodes the cache should be started.
      • getBackups

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

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

        @Deprecated
        public long getOffHeapMaxMemory()
        Deprecated.
        No longer used.
        Returns:
        Off-heap memory size.
      • setOffHeapMaxMemory

        @Deprecated
        public CollectionConfiguration setOffHeapMaxMemory​(long offHeapMaxMemory)
        Deprecated.
        No longer used.
        Parameters:
        offHeapMaxMemory - Off-heap memory size.
        Returns:
        this for chaining.
      • getGroupName

        public String getGroupName()
        Returns:
        Group name.