Package com.datastax.driver.core
Class SniEndPoint
- java.lang.Object
-
- com.datastax.driver.core.SniEndPoint
-
-
Constructor Summary
Constructors Constructor Description SniEndPoint(InetSocketAddress proxyAddress, String serverName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()InetSocketAddressresolve()Resolves this instance to a socket address.StringtoString()
-
-
-
Constructor Detail
-
SniEndPoint
public SniEndPoint(InetSocketAddress proxyAddress, String serverName)
- Parameters:
proxyAddress- the address of the proxy. If it is unresolved, each call toresolve()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.
-
-
Method Detail
-
resolve
public InetSocketAddress resolve()
Description copied from interface:EndPointResolves this instance to a socket address.This will be called each time the driver opens a new connection to the node. The returned address cannot be null.
-
-