
pl.allegro.tech.hermes.management.domain.detection.InactiveTopicsStorageService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.domain.detection;
import java.util.List;
import org.springframework.stereotype.Service;
import pl.allegro.tech.hermes.management.domain.dc.MultiDatacenterRepositoryCommandExecutor;
import pl.allegro.tech.hermes.management.domain.detection.command.MarkTopicsAsInactiveRepositoryCommand;
@Service
public class InactiveTopicsStorageService {
private final InactiveTopicsRepository inactiveTopicsRepository;
private final MultiDatacenterRepositoryCommandExecutor multiDcExecutor;
public InactiveTopicsStorageService(
InactiveTopicsRepository inactiveTopicsRepository,
MultiDatacenterRepositoryCommandExecutor multiDcExecutor) {
this.inactiveTopicsRepository = inactiveTopicsRepository;
this.multiDcExecutor = multiDcExecutor;
}
public void markAsInactive(List inactiveTopics) {
multiDcExecutor.execute(new MarkTopicsAsInactiveRepositoryCommand(inactiveTopics));
}
public List getInactiveTopics() {
return inactiveTopicsRepository.read();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy