public class RandomPortAllocator extends Object implements PortAllocator
| Constructor and Description |
|---|
RandomPortAllocator(Random random) |
| Modifier and Type | Method and Description |
|---|---|
int |
allocatePorts(int portCount)
Get portCount consecutive ports
|
public RandomPortAllocator(Random random)
public int allocatePorts(int portCount)
PortAllocatorallocatePorts in interface PortAllocatorportCount - the number of ports to allocateCopyright © 2020. All rights reserved.