Class ServerPort
java.lang.Object
io.micronaut.function.aws.proxy.test.ServerPort
Encapsulates the port assignment to be used when starting a server.
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ServerPort
public ServerPort()Constructor. -
ServerPort
- Parameters:
random
- Whether the port was randomly assignedport
- Port number
-
-
Method Details
-
isRandom
public boolean isRandom()- Returns:
- Whether the port was randomly assigned
-
setRandom
public void setRandom(boolean random) - Parameters:
random
- true if the port was randomly assigned
-
getPort
- Returns:
- The port number
-
setPort
- Parameters:
port
- Port number
-