@Internal public final class UdsNettyChannelProvider extends ManagedChannelProvider
NettyChannelBuilder instances for UDS channels.ManagedChannelProvider.NewChannelBuilderResult, ManagedChannelProvider.ProviderNotFoundException| Constructor and Description |
|---|
UdsNettyChannelProvider() |
| 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.
|
protected Collection<Class<? extends SocketAddress>> |
getSupportedSocketAddressTypes()
Returns the
SocketAddress types this ManagedChannelProvider supports. |
boolean |
isAvailable()
Whether this provider is available for use, taking the current environment into consideration.
|
ManagedChannelProvider.NewChannelBuilderResult |
newChannelBuilder(String target,
ChannelCredentials creds)
Creates a new builder with the given target URI and credentials.
|
int |
priority()
A priority, from 0 to 10 that this provider should be used, taking the current environment into
consideration.
|
providerpublic boolean isAvailable()
ManagedChannelProviderfalse, no other methods are safe to be called.isAvailable in class ManagedChannelProviderpublic int priority()
ManagedChannelProviderpriority in class ManagedChannelProviderpublic NettyChannelBuilder builderForAddress(String name, int port)
ManagedChannelProviderbuilderForAddress in class ManagedChannelProviderpublic NettyChannelBuilder builderForTarget(String target)
ManagedChannelProviderbuilderForTarget in class ManagedChannelProviderpublic ManagedChannelProvider.NewChannelBuilderResult newChannelBuilder(String target, ChannelCredentials creds)
ManagedChannelProvidernewChannelBuilder in class ManagedChannelProviderprotected Collection<Class<? extends SocketAddress>> getSupportedSocketAddressTypes()
ManagedChannelProviderSocketAddress types this ManagedChannelProvider supports.getSupportedSocketAddressTypes in class ManagedChannelProvider