Interface ServiceDefinition


@Deprecated(since="4.8.0") public interface ServiceDefinition
Deprecated.
Represents a Service.
See Also:
  • Field Details

  • Method Details

    • getId

      String getId()
      Deprecated.
      Gets the service id.
    • getName

      String getName()
      Deprecated.
      Gets the service name.
    • getHost

      String getHost()
      Deprecated.
      Gets the IP or hostname of the server hosting the service.
    • getPort

      int getPort()
      Deprecated.
      Gets the port number of the server hosting the service.
    • getHealth

      ServiceHealth getHealth()
      Deprecated.
      Gets the health.
    • getMetadata

      Map<String,String> getMetadata()
      Deprecated.
      Gets a key/value metadata associated with the service.
    • matches

      default boolean matches(ServiceDefinition other)
      Deprecated.
      Check if a service definition matches.