Interface EventConfigSource

All Known Implementing Classes:
PrefixedConfigSource

public interface EventConfigSource
A source that supports notifications when changed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Register a change listener.
    default void
    Stops background change support tasks associated with this source.
  • Method Details

    • onChange

      void onChange(BiConsumer<String, ConfigNode> changedNode)
      Register a change listener.
      Parameters:
      changedNode - the key and node of the configuration that changed. This may be the whole config tree, or a specific node depending on how fine grained the detection mechanism is. To notify of a whole node being changed, use empty string as a key
    • stopChangeSupport

      default void stopChangeSupport()
      Stops background change support tasks associated with this source.

      The source remains usable after this method returns.