Class ApplicationConfiguration.InstanceConfiguration

java.lang.Object
io.micronaut.runtime.ApplicationConfiguration.InstanceConfiguration
Enclosing class:
ApplicationConfiguration

@ConfigurationProperties("instance") public static class ApplicationConfiguration.InstanceConfiguration extends Object
Configuration for instance settings.
  • Field Details

  • Constructor Details

    • InstanceConfiguration

      public InstanceConfiguration()
  • Method Details

    • getId

      public Optional<String> getId()
      Returns:
      An optional instance identifier
    • setId

      public void setId(String id)
      Parameters:
      id - The instance identifier
    • getMetadata

      public Map<String,String> getMetadata()
      Returns:
      Any metadata to associate with the instance
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Parameters:
      metadata - The metadata to associate with the instance
    • getGroup

      public Optional<String> getGroup()
      Returns:
      The instance auto scaling group
    • setGroup

      public void setGroup(String group)
      Parameters:
      group - The instance auto scaling group
    • getZone

      public Optional<String> getZone()
      Returns:
      The instance availability zone. For example it's possible to configure Netflix Ribbon to load balance between servers only in a particular zone
    • setZone

      public void setZone(String zone)
      Parameters:
      zone - The instance availability zone