com.aol.micro.server.application.registry.RegistryStatsChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-application-register Show documentation
Show all versions of micro-application-register Show documentation
Opinionated rest microservices
package com.aol.micro.server.application.registry;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import com.aol.cyclops.data.collections.extensions.standard.ListX;
import com.aol.micro.server.StatsSupplier;
@Component
public class RegistryStatsChecker {
private final ListX status;
private final boolean active;
public RegistryStatsChecker() {
status = ListX.empty();
this.active = false;
}
@Autowired(required = false)
public RegistryStatsChecker(final List status,
@Value("${service.registry.stats.active:true}") boolean active) {
this.status = ListX.fromIterable(status);
this.active = active;
}
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy