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

io.fluxcapacitor.javaclient.publishing.MetricsGateway Maven / Gradle / Ivy

There is a newer version: 0.1015.0
Show newest version
package io.fluxcapacitor.javaclient.publishing;

import io.fluxcapacitor.common.api.Metadata;
import io.fluxcapacitor.javaclient.common.Message;

public interface MetricsGateway {

    default void publish(Object metrics) {
        if (metrics instanceof Message) {
            publish(((Message) metrics).getPayload(), ((Message) metrics).getMetadata());
        } else {
            publish(metrics, Metadata.empty());
        }
    }

    void publish(Object payload, Metadata metadata);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy