Interface PortInfoConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
PortInfoConfig.BuilderBase.PortInfoConfigImpl

public interface PortInfoConfig extends Prototype.Api
A prototype describing initial Eureka Server service instance registration port details.

This interface is deliberately modeled to closely resemble port-related methods of the com.netflix.appinfo.InstanceInfo class for familiarity.

Its configuration is deliberately modeled to closely resemble that expressed by the com.netflix.appinfo.PropertiesInstanceConfig class and its supertypes for user familiarity.

See Also:
  • Method Details

    • builder

      static PortInfoConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static PortInfoConfig.Builder builder(PortInfoConfig instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static PortInfoConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static PortInfoConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • port

      int port()
      The port number.
      Returns:
      the port number
    • enabled

      boolean enabled()
      Whether the port is enabled.
      Returns:
      whether the port is enabled