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() |
getScheme
public 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.Factory
public String getDefaultScheme()
getDefaultScheme
in class NameResolver.Factory
protected boolean isAvailable()
isAvailable
in class NameResolverProvider
protected int priority()
priority
in class NameResolverProvider