Class CacheConfigurationOverride


  • public class CacheConfigurationOverride
    extends Object
    Helper class to override cache configuration.
    • Constructor Detail

      • CacheConfigurationOverride

        public CacheConfigurationOverride()
    • Method Detail

      • mode

        public CacheMode mode()
        Returns:
        Cache mode.
      • backups

        public Integer backups()
        Returns:
        Number of backup nodes for one partition.
      • backups

        public CacheConfigurationOverride backups​(Integer backups)
        Parameters:
        backups - New number of backup nodes for one partition.
        Returns:
        this for chaining.
      • cacheGroup

        public String cacheGroup()
        Returns:
        Cache group name.
      • dataRegion

        public String dataRegion()
        Returns:
        Data region name.
      • apply

        public CacheConfiguration apply​(CacheConfiguration ccfg)
        Apply overrides to specified cache configuration.
        Parameters:
        ccfg - Cache configuration to override.
        Returns:
        Updated cache configuration to permit fluent-style method calls.
      • isEmpty

        public boolean isEmpty()
        Returns:
        true If nothing was set.