@Internal public final class NettyChannelProvider extends ManagedChannelProvider
NettyChannelBuilder
instances.ManagedChannelProvider.ProviderNotFoundException
Constructor and Description |
---|
NettyChannelProvider() |
Modifier and Type | Method and Description |
---|---|
NettyChannelBuilder |
builderForAddress(String name,
int port)
Creates a new builder with the given host and port.
|
NettyChannelBuilder |
builderForTarget(String target)
Creates a new builder with the given target URI.
|
boolean |
isAvailable()
Whether this provider is available for use, taking the current environment into consideration.
|
int |
priority()
A priority, from 0 to 10 that this provider should be used, taking the current environment into
consideration.
|
getCandidatesViaHardCoded, getCandidatesViaServiceLoader, isAndroid, provider
public boolean isAvailable()
ManagedChannelProvider
false
, no other methods are safe to be called.isAvailable
in class ManagedChannelProvider
public int priority()
ManagedChannelProvider
priority
in class ManagedChannelProvider
public NettyChannelBuilder builderForAddress(String name, int port)
ManagedChannelProvider
builderForAddress
in class ManagedChannelProvider
public NettyChannelBuilder builderForTarget(String target)
ManagedChannelProvider
builderForTarget
in class ManagedChannelProvider