INNER CODE UNIT · Java
Address
scalecube/scalecube-services · services-api/src/main/java/io/scalecube/services/Address.java:9
public class Address {
public static final Address NULL_ADDRESS = Address.create("nullhost", 0);
public static final Pattern ADDRESS_FORMAT = Pattern.compile("(?<host>^.*):(?<port>\\d+$)");
private String host;
private int port;
Address() {}
private Address(String host, int port) {
this.host = host;
this.port = port;
}
/**
* Parses given host:port string to create Address instance.