Constructor and Description |
---|
SniEndPoint(InetSocketAddress proxyAddress,
String serverName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
InetSocketAddress |
resolve()
Resolves this instance to a socket address.
|
String |
toString() |
public SniEndPoint(InetSocketAddress proxyAddress, String serverName)
proxyAddress
- the address of the proxy. If it is unresolved, each call to resolve()
will
re-resolve it, fetch all of its A-records, and if there are more than 1 pick one in a
round-robin fashion.serverName
- the SNI server name. In the context of DSOD, this is the string
representation of the host id.public InetSocketAddress resolve()
EndPoint
This will be called each time the driver opens a new connection to the node. The returned address cannot be null.
Copyright © 2012–2024. All rights reserved.