Class DiscoveryConfiguration

java.lang.Object
io.micronaut.discovery.DiscoveryConfiguration
All Implemented Interfaces:
Toggleable

public abstract class DiscoveryConfiguration extends Object implements Toggleable
Base class for common discovery configuration options.
Since:
1.0
Author:
graemerocher
  • Field Details

    • PREFIX

      public static final String PREFIX
      The prefix to use for all client discovery settings.
      See Also:
    • DEFAULT_ENABLED

      public static final boolean DEFAULT_ENABLED
      The default enable value.
      See Also:
  • Constructor Details

    • DiscoveryConfiguration

      public DiscoveryConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Toggleable
      Returns:
      Is discovery enabled? Defaults to true
    • setEnabled

      public void setEnabled(boolean enabled)
      Default value (true).
      Parameters:
      enabled - Whether discovery is enabled