public class TarantoolServerAddress extends Object implements Serializable
Constructor and Description |
---|
TarantoolServerAddress()
Creates a TarantoolServerAddress with default host and port
|
TarantoolServerAddress(InetSocketAddress socketAddress)
Auxiliary constructor for conversion between
InetSocketAddress and TarantoolServerAddress |
TarantoolServerAddress(String address)
Create a TarantoolServerAddress from connection string
e.g. 127.0.0.1:3301, localhost:3301, [::1]:3301, user:password@localhost:3301, user:password@[::1]:3301
|
TarantoolServerAddress(String host,
int port)
Creates a
TarantoolServerAddress instance |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getHost()
Get the hostname
|
int |
getPort()
Get the port number
|
InetSocketAddress |
getSocketAddress()
Get the socket address
|
int |
hashCode() |
String |
toString() |
public TarantoolServerAddress()
public TarantoolServerAddress(String host, int port)
TarantoolServerAddress
instancehost
- Tarantool server hostnameport
- Tarantool server portpublic TarantoolServerAddress(String address)
address
- address to Tarantoolpublic TarantoolServerAddress(InetSocketAddress socketAddress)
InetSocketAddress
and TarantoolServerAddress
socketAddress
- remote server addresspublic String getHost()
public int getPort()
public InetSocketAddress getSocketAddress() throws TarantoolSocketException
TarantoolSocketException
Copyright © 2025 Picodata. All rights reserved.