Interface ListenableConfig

All Known Subinterfaces:
IotServiceConfig, ServiceComponentConfig

public interface ListenableConfig
Annotated configuration classes implementing this interface will be able to have listeners registered to be invoked on configuration changes.

 ListenableConfig config = ...
    config.watch()
            .onGlobalChange(() -> {
                ...
            })
            .listen();
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a Listener instance to register a function to invoke when a configuration change is detected.
  • Method Details

    • watch

      Listener watch()
      Creates a Listener instance to register a function to invoke when a configuration change is detected.
      Returns:
      A new Listener instance.