public class FreePortFinder extends Object
| Constructor and Description |
|---|
FreePortFinder(int minPortNumber,
int maxPortNumber) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
find() |
boolean |
isPortFree(int port)
Check and log is a given port is available
|
void |
releasePort(int port)
Indicates that the port is free from the point of view of the caller.
|
public Integer find()
public void releasePort(int port)
port - the port number to release.public boolean isPortFree(int port)
port - the port number to checkCopyright © 2020. All rights reserved.