All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.networknt.eventuate.cdc.server.CdcServerStartupHookProvider Maven / Gradle / Ivy

There is a newer version: 2.0.11
Show newest version
package com.networknt.eventuate.cdc.server;

import com.networknt.eventuate.server.common.EventTableChangesToAggregateTopicTranslator;
import com.networknt.eventuate.server.common.PublishedEvent;
import com.networknt.server.StartupHookProvider;
import com.networknt.service.SingletonServiceFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * CdcServer StartupHookProvider. start cdc service
 */
public class CdcServerStartupHookProvider implements StartupHookProvider {
    private static final Logger logger = LoggerFactory.getLogger(CdcServerStartupHookProvider.class);
    @Override
    public void onStartup() {
        EventTableChangesToAggregateTopicTranslator translator = SingletonServiceFactory.getBean(EventTableChangesToAggregateTopicTranslator.class);
        translator.start();
        logger.info("CdcServerStartupHookProvider is called");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy