EquivalentAddressGroup
instead.@Deprecated @ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1770") @Immutable public final class ResolvedServerInfoGroup extends Object
ResolvedServerInfo
s that is returned from a NameResolver
.Modifier and Type | Class and Description |
---|---|
static class |
ResolvedServerInfoGroup.Builder
Deprecated.
Builder for a
ResolvedServerInfo . |
Modifier and Type | Method and Description |
---|---|
static ResolvedServerInfoGroup.Builder |
builder()
Deprecated.
Creates a new builder.
|
static ResolvedServerInfoGroup.Builder |
builder(Attributes attributes)
Deprecated.
Creates a new builder for a group with extra attributes.
|
boolean |
equals(Object o)
Deprecated.
Returns true if the given object is also a
ResolvedServerInfoGroup with an equal
attributes and list of ResolvedServerInfo objects. |
Attributes |
getAttributes()
Deprecated.
Returns
Attributes for this group. |
List<ResolvedServerInfo> |
getResolvedServerInfoList()
Deprecated.
Returns immutable list of
ResolvedServerInfo objects for this group. |
int |
hashCode()
Deprecated.
Returns a hash code for the resolved server info group.
|
EquivalentAddressGroup |
toEquivalentAddressGroup()
Deprecated.
Converts this group to
EquivalentAddressGroup object. |
String |
toString()
Deprecated.
|
public List<ResolvedServerInfo> getResolvedServerInfoList()
ResolvedServerInfo
objects for this group.public Attributes getAttributes()
Attributes
for this group.public EquivalentAddressGroup toEquivalentAddressGroup()
EquivalentAddressGroup
object.public static ResolvedServerInfoGroup.Builder builder()
public static ResolvedServerInfoGroup.Builder builder(Attributes attributes)
public boolean equals(Object o)
ResolvedServerInfoGroup
with an equal
attributes and list of ResolvedServerInfo
objects.equals
in class Object
o
- an object.ResolvedServerInfoGroup
with an equal attributes
and server info list.public int hashCode()
Note that if a resolver includes mutable values in the attributes, this object's hash code could change over time. So care must be used when putting these objects into a set or using them as keys for a map.