Package io.vertx.mutiny.core.net
Class SocketAddress
java.lang.Object
io.vertx.mutiny.core.net.SocketAddress
- All Implemented Interfaces:
MutinyDelegate
The address of a socket, an inet socket address or a domain socket address.
Use
inetSocketAddress(int, java.lang.String)
to create an inet socket address and domainSocketAddress(java.lang.String)
to create a domain socket address
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSocketAddress
(io.vertx.core.net.SocketAddress delegate) SocketAddress
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketAddress
domainSocketAddress
(String path) boolean
io.vertx.core.net.SocketAddress
int
hashCode()
host()
hostName()
static SocketAddress
inetSocketAddress
(int port, String host) static SocketAddress
inetSocketAddress
(InetSocketAddress address) boolean
boolean
static SocketAddress
newInstance
(io.vertx.core.net.SocketAddress arg) path()
int
port()
static SocketAddress
sharedRandomPort
(int id, String host) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
SocketAddress
public SocketAddress(io.vertx.core.net.SocketAddress delegate) -
SocketAddress
-
-
Method Details
-
getDelegate
public io.vertx.core.net.SocketAddress getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
inetSocketAddress
- Parameters:
port
- the porthost
- the host- Returns:
- the created socket address
-
domainSocketAddress
- Parameters:
path
- the address path- Returns:
- the created socket address
-
host
- Returns:
- the host address
-
hostName
- Returns:
- the host name
-
hostAddress
- Returns:
- the host address
-
port
public int port()- Returns:
- the address port or
-1
for a domain socket
-
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
- Parameters:
address
- the address- Returns:
- the created socket address
-
newInstance
-