Package com.artipie.npm.misc
Class NextSafeAvailablePort
- java.lang.Object
-
- com.artipie.npm.misc.NextSafeAvailablePort
-
public class NextSafeAvailablePort extends Object
NextSafeAvailablePort.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description NextSafeAvailablePort()
Ctor.NextSafeAvailablePort(int from)
Ctor.
-
-
-
Method Detail
-
value
public int value()
Gets the next available port starting at a port.- Returns:
- Next available port
- Throws:
IllegalArgumentException
- if there are no ports available
-
-