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

su.nlq.prometheus.jmx.connection.remote.RemoteConnection Maven / Gradle / Ivy

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

import org.jetbrains.annotations.NotNull;
import su.nlq.prometheus.jmx.connection.Connection;
import su.nlq.prometheus.jmx.connection.ConnectionConsumer;

import java.util.Optional;

public final class RemoteConnection extends Connection {
  private final @NotNull Connection connection;

  public RemoteConnection(@NotNull Optional name, @NotNull Connection connection) {
    super(name);
    this.connection = connection;
  }

  @Override
  public void accept(@NotNull ConnectionConsumer consumer) {
    connection.accept(consumer);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy