public class Ports
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static int | allocate()Allocates a single port which is immediately released
 and available. | 
| static java.lang.Iterable<java.lang.Integer> | allocate(int count)Allocates N ports all of which are open and being held
 and not available until the iterable is consumed. | 
public static int allocate()
public static java.lang.Iterable<java.lang.Integer> allocate(int count)