Class InMemoryYamlConfig

java.lang.Object
com.hazelcast.config.Config
com.hazelcast.config.InMemoryYamlConfig

public class InMemoryYamlConfig
extends Config
Creates a Config loaded from an in-memory Hazelcast YAML String.
  • Constructor Details

    • InMemoryYamlConfig

      public InMemoryYamlConfig​(String yaml)
      Creates a Config from the provided YAML string and uses the System.properties to resolve variables in the YAML.
      Parameters:
      yaml - the YAML content as a Hazelcast YAML String
      Throws:
      IllegalArgumentException - if the YAML is null or empty
      InvalidConfigurationException - if the YAML content is invalid
    • InMemoryYamlConfig

      public InMemoryYamlConfig​(String yaml, Properties properties)
      Creates a Config from the provided YAML string and properties to resolve the variables in the YAML.
      Parameters:
      yaml - the YAML content as a Hazelcast YAML String
      Throws:
      IllegalArgumentException - if the YAML is null or empty or if properties is null
      InvalidConfigurationException - if the YAML content is invalid