Class ServerPort

java.lang.Object
io.micronaut.function.aws.proxy.test.ServerPort

public class ServerPort extends Object
Encapsulates the port assignment to be used when starting a server.
Author:
Sergio del Amo
  • Constructor Details

    • ServerPort

      public ServerPort()
      Constructor.
    • ServerPort

      public ServerPort(boolean random, Integer port)
      Parameters:
      random - Whether the port was randomly assigned
      port - 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

      public Integer getPort()
      Returns:
      The port number
    • setPort

      public void setPort(Integer port)
      Parameters:
      port - Port number