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

dev.sixpack.api.rpc.SupplierAi Maven / Gradle / Ivy

The newest version!
package dev.sixpack.api.rpc;

import dev.sixpack.api.data.SupplierTelemetry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static dev.sixpack.api.data.SupplierStatus.OK;

public class SupplierAi implements SupplierA {
    private static Logger LOGGER;

    public SupplierAi(String supplierName) {
        LOGGER = LoggerFactory.getLogger(supplierName + "Supplier");
    }

    @Override
    public SupplierTelemetry getTelemetry() {
        LOGGER.debug("Sending heartbeat telemetry to Sixpack");
        return new SupplierTelemetry(OK);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy