public final class AvailablePortFinder extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getNextAvailable()
Gets the next available port.
|
static int |
getNextAvailable(int fromPort,
int toPort)
Gets the next available port in the given range.
|
public static int getNextAvailable()
IllegalStateException - if there are no ports availablepublic static int getNextAvailable(int fromPort,
int toPort)
IllegalStateException - if there are no ports availableApache Camel