Class DataRegionConfiguration

java.lang.Object
org.apache.ignite.configuration.DataRegionConfiguration

public class DataRegionConfiguration extends Object
This class allows defining custom data regions' configurations with various parameters for Apache Ignite page memory. For each configured data region Apache Ignite instantiates respective memory regions with different parameters like maximum size, eviction policy, swapping options, persistent mode flag, etc.
  • Constructor Details

    • DataRegionConfiguration

      public DataRegionConfiguration(String name, long maximumSize)
      Constructs a new instance.
      Parameters:
      name - Data region name. May not be null.
      maximumSize - Maximum data region size in bytes. Must be greater than 0.
  • Method Details

    • getName

      public String getName()
      Gets data region name.
      Returns:
      Data region name.
    • getMaximumSize

      public long getMaximumSize()
      Maximum memory region size defined by this data region. If the whole data can not fit into the memory region an out of memory exception will be thrown.
      Returns:
      Size in bytes.