diff --git a/vertx-core/src/main/java/io/vertx/core/net/impl/ServerID.java b/vertx-core/src/main/java/io/vertx/core/net/impl/ServerID.java index 818a37a530d..a531180418c 100644 --- a/vertx-core/src/main/java/io/vertx/core/net/impl/ServerID.java +++ b/vertx-core/src/main/java/io/vertx/core/net/impl/ServerID.java @@ -16,7 +16,7 @@ /** * @author Tim Fox */ -public class ServerID { +public final class ServerID { private final int port; private final String host; @@ -26,6 +26,14 @@ public ServerID(int port, String host) { this.host = host; } + public int port() { + return port; + } + + public String host() { + return host; + } + @Override public boolean equals(Object o) { if (this == o) {