public class PortAllocation
Modifier and Type | Class and Description |
---|---|
static class |
PortAllocation.Companion |
static class |
PortAllocation.Incremental
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static PortAllocation.Companion |
Companion |
static int |
DEFAULT_START_PORT |
static int |
FIRST_EPHEMERAL_PORT |
Constructor and Description |
---|
PortAllocation() |
Modifier and Type | Method and Description |
---|---|
NetworkHostAndPort |
nextHostAndPort()
Get the next available port via
PortAllocation.nextPort and then return a class NetworkHostAndPort |
int |
nextPort() |
public static int DEFAULT_START_PORT
public static int FIRST_EPHEMERAL_PORT
public static PortAllocation.Companion Companion
public NetworkHostAndPort nextHostAndPort()
Get the next available port via PortAllocation.nextPort
and then return a class NetworkHostAndPort
PortAllocation.nextPort
,
class NetworkHostAndPort
public int nextPort()