Class EventBasedConfigMapChangeDetector

java.lang.Object
org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
org.springframework.cloud.kubernetes.fabric8.config.reload.EventBasedConfigMapChangeDetector

public class EventBasedConfigMapChangeDetector extends org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
An Event Based change detector that subscribes to changes in configMaps and fire a reload when something changes.
Author:
Nicola Ferraro, Haytham Mohamed, Kris Iyer
  • Field Summary

    Fields inherited from class org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector

    environment, log, properties, strategy
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventBasedConfigMapChangeDetector(org.springframework.core.env.AbstractEnvironment environment, org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onEvent(io.fabric8.kubernetes.api.model.ConfigMap configMap)
     
    void
     
    void
     
    void
     

    Methods inherited from class org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector

    changed, changed, findPropertySource, findPropertySources, locateMapPropertySources, reloadProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventBasedConfigMapChangeDetector

      public EventBasedConfigMapChangeDetector(org.springframework.core.env.AbstractEnvironment environment, org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator)
  • Method Details

    • shutdown

      @PreDestroy public void shutdown()
    • watch

      @PostConstruct public void watch()
    • unwatch

      @PreDestroy public void unwatch()
    • onEvent

      protected void onEvent(io.fabric8.kubernetes.api.model.ConfigMap configMap)