public class Ports extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
allocate()
Allocates a single port which is immediately released
and available.
|
static Iterable<Integer> |
allocate(int count)
Allocates N ports all of which are open and being held
and not available until the iterable is consumed.
|
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.