public static class PortAllocation.Incremental extends PortAllocation
PortAllocation.Companion, PortAllocation.Incremental
Companion, DEFAULT_START_PORT, FIRST_EPHEMERAL_PORT
Constructor and Description |
---|
Incremental(int startingPort)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.atomic.AtomicInteger |
getPortCounter()
Deprecated.
|
int |
nextPort()
Deprecated.
|
nextHostAndPort, nextPort
public java.util.concurrent.atomic.AtomicInteger getPortCounter()
The backing AtomicInteger used to keep track of the currently allocated port
public int nextPort()