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 SocketAddressdomainSocketAddress(String path) booleanio.vertx.core.net.SocketAddressinthashCode()host()hostName()static SocketAddressinetSocketAddress(int port, String host) static SocketAddressinetSocketAddress(InetSocketAddress address) booleanbooleanstatic SocketAddressnewInstance(io.vertx.core.net.SocketAddress arg) path()intport()static SocketAddresssharedRandomPort(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:
getDelegatein 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
-1for a domain socket
-
path
- Returns:
- the domain socket path or
nullfor inet socket address, empty path represents unnamed domain socket addresses.
-
isInetSocket
public boolean isInetSocket()- Returns:
truefor an inet socket address
-
isDomainSocket
public boolean isDomainSocket()- Returns:
truefor an domain socket address
-
inetSocketAddress
- Parameters:
address- the address- Returns:
- the created socket address
-
newInstance
-