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

com.icthh.xm.commons.topic.service.AbstractDynamicConsumerConfiguration Maven / Gradle / Ivy

There is a newer version: 4.0.17
Show newest version
package com.icthh.xm.commons.topic.service;

import com.icthh.xm.commons.topic.service.dto.RefreshDynamicConsumersEvent;
import lombok.RequiredArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;

@RequiredArgsConstructor
public abstract class AbstractDynamicConsumerConfiguration implements DynamicConsumerConfiguration {

    private final ApplicationEventPublisher applicationEventPublisher;

    public void sendRefreshDynamicConsumersEvent(String tenantKey) {
        applicationEventPublisher.publishEvent(new RefreshDynamicConsumersEvent(this, tenantKey));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy