Example usage for Java org.springframework.util SocketUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
int | findAvailableTcpPort() Find an available TCP port randomly selected from the range [ #PORT_RANGE_MIN , #PORT_RANGE_MAX ]. |
int | findAvailableTcpPort(int minPort) Find an available TCP port randomly selected from the range [ minPort , #PORT_RANGE_MAX ]. |
int | findAvailableUdpPort(int minPort) Find an available UDP port randomly selected from the range [ minPort , #PORT_RANGE_MAX ]. |