@Internal public final class OkHttpChannelProvider extends ManagedChannelProvider
OkHttpChannelBuilder instances.ManagedChannelProvider.ProviderNotFoundException| Constructor and Description |
|---|
OkHttpChannelProvider() |
| Modifier and Type | Method and Description |
|---|---|
OkHttpChannelBuilder |
builderForAddress(String name,
int port)
Creates a new builder with the given host and port.
|
OkHttpChannelBuilder |
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.
|
isAndroid, providerpublic boolean isAvailable()
ManagedChannelProviderfalse, no other methods are safe to be called.isAvailable in class ManagedChannelProviderpublic int priority()
ManagedChannelProviderpriority in class ManagedChannelProviderpublic OkHttpChannelBuilder builderForAddress(String name, int port)
ManagedChannelProviderbuilderForAddress in class ManagedChannelProviderpublic OkHttpChannelBuilder builderForTarget(String target)
ManagedChannelProviderbuilderForTarget in class ManagedChannelProvider