Interface ConfigurationService

  • All Superinterfaces:
    AutoCloseable

    public interface ConfigurationService
    extends AutoCloseable
    Manages OpenFlowPlugin configuration.
    • Method Detail

      • update

        void update​(@NonNull Map<String,​String> properties)
        Update map of properties.
        Parameters:
        properties - properties
      • registerListener

        @NonNull AutoCloseable registerListener​(@NonNull ConfigurationListener listener)
        Register listener for configuration changes.
        Parameters:
        listener - the listener
        Returns:
        the auto closeable listener registration
      • getProperty

        <T> @NonNull T getProperty​(@NonNull String key,
                                   @NonNull Function<String,​T> transformer)
        Get single property from configuration service.
        Type Parameters:
        T - property type
        Parameters:
        key - property key
        transformer - property type transformer
        Returns:
        property property