public class SelfNameResolverFactory extends NameResolverProvider
SelfNameResolverFactory based on the target uri.| Modifier and Type | Field and Description |
|---|---|
static String |
SELF_SCHEME
The constant containing the scheme that will be used by this factory.
|
| Constructor and Description |
|---|
SelfNameResolverFactory(GrpcServerProperties properties)
Creates a new SelfNameResolverFactory that uses the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultScheme() |
protected boolean |
isAvailable() |
NameResolver |
newNameResolver(URI targetUri,
NameResolver.Args args) |
protected int |
priority() |
String |
toString() |
getSchemepublic static final String SELF_SCHEME
public SelfNameResolverFactory(GrpcServerProperties properties)
properties - The properties used to resolve this server's address.public NameResolver newNameResolver(URI targetUri, NameResolver.Args args)
newNameResolver in class NameResolver.Factorypublic String getDefaultScheme()
getDefaultScheme in class NameResolver.Factoryprotected boolean isAvailable()
isAvailable in class NameResolverProviderprotected int priority()
priority in class NameResolverProvider