@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1771") public static final class LoadBalancer.CreateSubchannelArgs extends Object
LoadBalancer.Subchannel
.Modifier and Type | Class and Description |
---|---|
static class |
LoadBalancer.CreateSubchannelArgs.Builder |
static class |
LoadBalancer.CreateSubchannelArgs.Key<T>
Key for a key-value pair.
|
Modifier and Type | Method and Description |
---|---|
List<EquivalentAddressGroup> |
getAddresses()
Returns the addresses, which is an unmodifiable list.
|
Attributes |
getAttributes()
Returns the attributes.
|
<T> T |
getOption(LoadBalancer.CreateSubchannelArgs.Key<T> key)
Get the value for a custom option or its inherent default.
|
static LoadBalancer.CreateSubchannelArgs.Builder |
newBuilder()
Creates a new builder.
|
LoadBalancer.CreateSubchannelArgs.Builder |
toBuilder()
Returns a builder with the same initial values as this object.
|
String |
toString() |
public List<EquivalentAddressGroup> getAddresses()
public Attributes getAttributes()
public <T> T getOption(LoadBalancer.CreateSubchannelArgs.Key<T> key)
key
- Key identifying optionpublic LoadBalancer.CreateSubchannelArgs.Builder toBuilder()
public static LoadBalancer.CreateSubchannelArgs.Builder newBuilder()