Class DiscoveryConfiguration

  • All Implemented Interfaces:
    io.micronaut.core.util.Toggleable

    public abstract class DiscoveryConfiguration
    extends java.lang.Object
    implements io.micronaut.core.util.Toggleable
    Base class for common discovery configuration options.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEFAULT_ENABLED
      The default enable value.
      static java.lang.String PREFIX
      The prefix to use for all client discovery settings.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEnabled()  
      void setEnabled​(boolean enabled)
      Default value (true).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PREFIX

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

        public static final boolean DEFAULT_ENABLED
        The default enable value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DiscoveryConfiguration

        public DiscoveryConfiguration()
    • Method Detail

      • isEnabled

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

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