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

io.scalecube.services.ServiceEndpoint Maven / Gradle / Ivy

package io.scalecube.services;

import java.util.Collection;
import java.util.Map;

public class ServiceEndpoint {

  private String id;
  private String host;
  private int port;
  private Map tags;
  private Collection serviceRegistrations;

  /**
   * @deprecated exposed only for deserialization purpose.
   */
  public ServiceEndpoint() {}

  public ServiceEndpoint(String id,
      String host,
      int port,
      Map tags,
      Collection serviceRegistrations) {
    this.id = id;
    this.host = host;
    this.port = port;
    this.tags = tags;
    this.serviceRegistrations = serviceRegistrations;
  }

  public String id() {
    return id;
  }

  public String host() {
    return host;
  }

  public int port() {
    return port;
  }

  public Map tags() {
    return tags;
  }

  public Collection serviceRegistrations() {
    return serviceRegistrations;
  }

  @Override
  public String toString() {
    return "ServiceEndpoint{" +
        "id='" + id + '\'' +
        ", host='" + host + '\'' +
        ", port=" + port +
        ", tags=" + tags +
        ", serviceRegistrations=" + serviceRegistrations +
        '}';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy