public class PortProber extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HIGHEST_PORT |
static int |
START_OF_USER_PORTS |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
findFreePort() |
static Callable<Integer> |
freeLocalPort(int port) |
static boolean |
pollPort(int port) |
static boolean |
pollPort(int port,
int timeout,
TimeUnit unit) |
static void |
waitForPortUp(int port,
int timeout,
TimeUnit unit) |
public static final int HIGHEST_PORT
public static final int START_OF_USER_PORTS