@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1771") public static final class LoadBalancer.CreateSubchannelArgs.Key<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <T> LoadBalancer.CreateSubchannelArgs.Key<T> |
create(String debugString)
Factory method for creating instances of
LoadBalancer.CreateSubchannelArgs.Key . |
static <T> LoadBalancer.CreateSubchannelArgs.Key<T> |
createWithDefault(String debugString,
T defaultValue)
Factory method for creating instances of
LoadBalancer.CreateSubchannelArgs.Key . |
T |
getDefault()
Returns the user supplied default value for this key.
|
String |
toString() |
public static <T> LoadBalancer.CreateSubchannelArgs.Key<T> create(String debugString)
LoadBalancer.CreateSubchannelArgs.Key
. The default value of the key is
null
.T
- Key typedebugString
- a debug string that describes this key.public static <T> LoadBalancer.CreateSubchannelArgs.Key<T> createWithDefault(String debugString, T defaultValue)
LoadBalancer.CreateSubchannelArgs.Key
.T
- Key typedebugString
- a debug string that describes this key.defaultValue
- default value to return when value for key not setpublic T getDefault()