@Internal public class OkHttpChannelProvider extends ManagedChannelProvider
OkHttpChannelBuilder instances.ManagedChannelProvider.ProviderNotFoundException| Constructor and Description |
|---|
OkHttpChannelProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected OkHttpChannelBuilder |
builderForAddress(String name,
int port)
Creates a new builder with the given host and port.
|
protected boolean |
isAvailable()
Whether this provider is available for use, taking the current environment into consideration.
|
protected int |
priority()
A priority, from 0 to 10 that this provider should be used, taking the current environment into
consideration.
|
providerprotected boolean isAvailable()
ManagedChannelProviderfalse, no other methods are safe to be called.isAvailable in class ManagedChannelProviderprotected int priority()
ManagedChannelProviderpriority in class ManagedChannelProviderprotected OkHttpChannelBuilder builderForAddress(String name, int port)
ManagedChannelProviderbuilderForAddress in class ManagedChannelProvider