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

su.nlq.prometheus.jmx.connection.Connection Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package su.nlq.prometheus.jmx.connection;

import org.jetbrains.annotations.NotNull;
import su.nlq.prometheus.jmx.logging.Logger;

import java.io.IOException;

public interface Connection {

  static void fail(@NotNull String address, @NotNull IOException e) {
    Logger.instance.error("Failed connect to " + address + ": " + e.getMessage());
  }

  void accept(@NotNull ConnectionConsumer consumer);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy