Interface ConfigurationBuilders.PortBuilder<C extends io.dropwizard.Configuration>
-
- All Known Implementing Classes:
DropwizardConfigurationHelper
- Enclosing interface:
- ConfigurationBuilders
public static interface ConfigurationBuilders.PortBuilder<C extends io.dropwizard.Configuration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationBuilders.CustomizationBuilder<C>
withPorts(int applicationPort, int adminPort)
Sets the given ports as fixed ports.ConfigurationBuilders.CustomizationBuilder<C>
withRandomPorts()
Configures random application port and the admin port.
-
-
-
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 to0
- 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 toadminPort
- the port the admin connector listens to- Returns:
- the builder instance
-
-