@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") @Immutable public final class ResolvedServerInfo extends Object
NameResolver.| Constructor and Description |
|---|
ResolvedServerInfo(SocketAddress address,
Attributes attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
getAddress()
Returns the address.
|
Attributes |
getAttributes()
Returns the associated attributes.
|
String |
toString() |
public ResolvedServerInfo(SocketAddress address, Attributes attributes)
address - the address objectattributes - attributes associated with this address.public SocketAddress getAddress()
public Attributes getAttributes()