Interface MeterRegistryConfig

All Known Subinterfaces:
DropwizardConfig, LoggingRegistryConfig, PushRegistryConfig, SimpleConfig, StepRegistryConfig

public interface MeterRegistryConfig
  • Method Summary

    Modifier and Type Method Description
    java.lang.String get​(java.lang.String key)
    Get the value associated with a key.
    java.lang.String prefix()  
    default void requireValid()
    Validate configuration and throw ValidationException if it's not valid.
    default Validated<?> validate()
    Validate configuration.
  • Method Details

    • prefix

      java.lang.String prefix()
    • get

      @Nullable java.lang.String get​(java.lang.String key)
      Get the value associated with a key.
      Parameters:
      key - Key to lookup in the config.
      Returns:
      Value for the key or null if no key is present.
    • validate

      default Validated<?> validate()
      Validate configuration.
      Returns:
      validation result
      Since:
      1.5.0
    • requireValid

      default void requireValid() throws ValidationException
      Validate configuration and throw ValidationException if it's not valid.
      Throws:
      ValidationException - if it's not valid
      Since:
      1.5.0