java.lang.Object
org.neo4j.driver.internal.bolt.api.BoltServerAddress
Holds a host and port pair that denotes a Bolt server address.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected final Stringstatic final BoltServerAddressprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionBoltServerAddress(String address) BoltServerAddress(String host, int port) BoltServerAddress(String host, String connectionHost, int port) BoltServerAddress(URI uri) -
Method Summary
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
LOCAL_DEFAULT
-
host
-
port
protected final int port
-
-
Constructor Details
-
BoltServerAddress
-
BoltServerAddress
-
BoltServerAddress
-
BoltServerAddress
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
host
-
port
public int port() -
connectionHost
-
unicastStream
Create a stream of unicast addresses.While this implementation just returns a stream of itself, the subclasses may provide multiple addresses.
- Returns:
- stream of unicast addresses.
-