Package io.micronaut.discovery
Class DiscoveryConfiguration
java.lang.Object
io.micronaut.discovery.DiscoveryConfiguration
- All Implemented Interfaces:
Toggleable
Base class for common discovery configuration options.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
The prefix to use for all client discovery settings. -
Constructor Summary
-
Method Summary
-
Field Details
-
PREFIX
The prefix to use for all client discovery settings.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
DiscoveryConfiguration
public DiscoveryConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceToggleable
- Returns:
- Is discovery enabled? Defaults to true
-
setEnabled
public void setEnabled(boolean enabled) Default value (true).- Parameters:
enabled
- Whether discovery is enabled
-