ConnectionPorts Type — spring-boot Architecture
Architecture documentation for the ConnectionPorts type/interface in ConnectionPorts.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core/ConnectionPorts.java lines 32–59
public interface ConnectionPorts {
/**
* Return the host port mapped to the given container port.
* @param containerPort the container port. This is usually the standard port for the
* service (e.g. port 80 for HTTP)
* @return the host port. This can be an ephemeral port that is different from the
* container port
* @throws IllegalStateException if the container port is not mapped
*/
int get(int containerPort);
/**
* Return all host ports in use.
* @return a list of all host ports
* @see #getAll(String)
*/
List<Integer> getAll();
/**
* Return all host ports in use that match the given protocol.
* @param protocol the protocol in use (for example 'tcp') or {@code null} to return
* all host ports
* @return a list of all host ports using the given protocol
*/
List<Integer> getAll(@Nullable String protocol);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free