# ConfigWatcher.java

    package cloud.wconnect.frontoffice.service;

    import cloud.wconnect.commonlib.redis.ConfigChangeWatcher;
    import cloud.wconnect.commonlib.service.ConfigChangeTrigger;
    import lombok.AllArgsConstructor;
    import org.springframework.scheduling.annotation.Scheduled;
    import org.springframework.stereotype.Service;

    @Service
    @AllArgsConstructor
    public class ConfigWatcher {
        private ConfigChangeWatcher configChangeWatcher;
        private ConfigChangeTrigger configChangeTrigger;

        @Scheduled(fixedRate = 10000)
        public void run() {
            if (configChangeWatcher.isChanged()) {
                configChangeTrigger.run();
            }
        }
    }