Package io.micronaut.runtime
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
-
PREFIX
Prefix for Micronaut instance settings.- See Also:
-
INSTANCE_ID
Property name for Micronaut instance id.- See Also:
-
-
Constructor Details
-
InstanceConfiguration
public InstanceConfiguration()
-
-
Method Details
-
getId
- Returns:
- An optional instance identifier
-
setId
- Parameters:
id
- The instance identifier
-
getMetadata
- Returns:
- Any metadata to associate with the instance
-
setMetadata
- Parameters:
metadata
- The metadata to associate with the instance
-
getGroup
- Returns:
- The instance auto scaling group
-
setGroup
- Parameters:
group
- The instance auto scaling group
-
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
- Parameters:
zone
- The instance availability zone
-