Class SocketAddress

    • Constructor Detail

      • SocketAddress

        public SocketAddress​(io.vertx.core.net.SocketAddress delegate)
      • SocketAddress

        public SocketAddress​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.core.net.SocketAddress getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • sharedRandomPort

        public static SocketAddress sharedRandomPort​(int id,
                                                     String host)
        Parameters:
        id - the shared random port id
        host - the host
        Returns:
        the created socket address
      • inetSocketAddress

        public static SocketAddress inetSocketAddress​(int port,
                                                      String host)
        Parameters:
        port - the port
        host - the host
        Returns:
        the created socket address
      • domainSocketAddress

        public static SocketAddress domainSocketAddress​(String path)
        Parameters:
        path - the address path
        Returns:
        the created socket address
      • host

        public String host()
        Returns:
        the host address
      • hostName

        public String hostName()
        Returns:
        the host name
      • hostAddress

        public String hostAddress()
        Returns:
        the host address
      • port

        public int port()
        Returns:
        the address port or -1 for a domain socket
      • path

        public String path()
        Returns:
        the domain socket path or null for inet socket address, empty path represents unnamed domain socket addresses.
      • isInetSocket

        public boolean isInetSocket()
        Returns:
        true for an inet socket address
      • isDomainSocket

        public boolean isDomainSocket()
        Returns:
        true for an domain socket address
      • inetSocketAddress

        public static SocketAddress inetSocketAddress​(InetSocketAddress address)
        Parameters:
        address - the address
        Returns:
        the created socket address
      • newInstance

        public static SocketAddress newInstance​(io.vertx.core.net.SocketAddress arg)