Package io.grpc
Class LoadBalancer.CreateSubchannelArgs
- java.lang.Object
-
- io.grpc.LoadBalancer.CreateSubchannelArgs
-
- Enclosing class:
- LoadBalancer
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1771") public static final class LoadBalancer.CreateSubchannelArgs extends Object
Arguments for creating aLoadBalancer.Subchannel
.- Since:
- 1.22.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadBalancer.CreateSubchannelArgs.Builder
static class
LoadBalancer.CreateSubchannelArgs.Key<T>
Key for a key-value pair.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getAddresses
public List<EquivalentAddressGroup> getAddresses()
Returns the addresses, which is an unmodifiable list.
-
getAttributes
public Attributes getAttributes()
Returns the attributes.
-
getOption
public <T> T getOption(LoadBalancer.CreateSubchannelArgs.Key<T> key)
Get the value for a custom option or its inherent default.- Parameters:
key
- Key identifying option
-
toBuilder
public LoadBalancer.CreateSubchannelArgs.Builder toBuilder()
Returns a builder with the same initial values as this object.
-
newBuilder
public static LoadBalancer.CreateSubchannelArgs.Builder newBuilder()
Creates a new builder.
-
-