Interface ConfigurationBuilders.PortBuilder<C extends io.dropwizard.Configuration>

    • Method Detail

      • withRandomPorts

        ConfigurationBuilders.CustomizationBuilder<C> withRandomPorts()
        Configures random application port and the admin port. This settings is equal to setting the connector ports in the configuration yaml to 0
        Returns:
        the builder instance
      • withPorts

        ConfigurationBuilders.CustomizationBuilder<C> withPorts​(int applicationPort,
                                                                int adminPort)
        Sets the given ports as fixed ports. This settings is equal to setting the connector ports in the configuration yaml to the given ports.
        Parameters:
        applicationPort - the port the application connector listens to
        adminPort - the port the admin connector listens to
        Returns:
        the builder instance