Package io.grpc
Class NameResolver.Args.Key<T>
java.lang.Object
io.grpc.NameResolver.Args.Key<T>
- Type Parameters:
T
- type of values that can be stored under this key
- Enclosing class:
NameResolver.Args
Identifies an externally-defined custom argument that can be stored in
NameResolver.Args
.
Uses reference equality so keys should be defined as global constants.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> NameResolver.Args.Key
<T> Creates a new instance ofNameResolver.Args.Key
.toString()
-
Method Details
-
toString
-
create
Creates a new instance ofNameResolver.Args.Key
.- Type Parameters:
T
- Key type- Parameters:
debugString
- a string used to describe the key, used for debugging.- Returns:
- a new instance of Key
-