src/main/java/io/arivera/oss/embedded/rabbitmq/EmbeddedRabbitMqConfig.java
public int getRabbitMqPort() {
    String portValue = this.envVars.get(RabbitMqEnvVar.NODE_PORT.getEnvVarName());
    if (portValue == null) {
      return RabbitMqEnvVar.DEFAULT_NODE_PORT;
    } else {
      return Integer.parseInt(portValue);
    }
  }
public int getRabbitMqPort() {
    String portValue = this.envVars.get(RabbitMqEnvVar.NODE_PORT.getEnvVarName());
    if (portValue == null) {
      return RabbitMqEnvVar.DEFAULT_NODE_PORT;
    } else {
      return Integer.parseInt(portValue);
    }
  }
Returns the RabbitMQ node port as defined by the {@link #envVars} or the default port if not defined.
<p>
This method will return the correct port even if the {@link Builder#randomPort()} method was used.