public class StaticNameResolverProvider
extends io.grpc.NameResolverProvider
NameResolver with static addresses. This factory uses the
"static" scheme.| Modifier and Type | Field and Description |
|---|---|
static String |
STATIC_SCHEME
The constant containing the scheme that will be used by this factory.
|
| Constructor and Description |
|---|
StaticNameResolverProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultScheme() |
protected boolean |
isAvailable() |
io.grpc.NameResolver |
newNameResolver(URI targetUri,
io.grpc.NameResolver.Args args) |
protected int |
priority() |
String |
toString() |
public static final String STATIC_SCHEME
@Nullable public io.grpc.NameResolver newNameResolver(URI targetUri, io.grpc.NameResolver.Args args)
newNameResolver in class io.grpc.NameResolver.Factorypublic String getDefaultScheme()
getDefaultScheme in class io.grpc.NameResolver.Factoryprotected boolean isAvailable()
isAvailable in class io.grpc.NameResolverProviderprotected int priority()
priority in class io.grpc.NameResolverProvider