Modifier and Type | Class and Description |
---|---|
class |
ManagedChannelBuilder<T extends ManagedChannelBuilder<T>>
A builder for
ManagedChannel instances. |
Modifier and Type | Class and Description |
---|---|
class |
ForwardingChannelBuilder<T extends ForwardingChannelBuilder<T>>
A
ManagedChannelBuilder that delegates all its builder methods to another builder by
default. |
Modifier and Type | Method and Description |
---|---|
protected abstract ManagedChannelBuilder<?> |
ManagedChannelProvider.builderForAddress(String name,
int port)
Creates a new builder with the given host and port.
|
protected abstract ManagedChannelBuilder<?> |
ManagedChannelProvider.builderForTarget(String target)
Creates a new builder with the given target URI.
|
ManagedChannelBuilder<?> |
LoadBalancer.Helper.createResolvingOobChannelBuilder(String target)
Deprecated.
|
ManagedChannelBuilder<?> |
LoadBalancer.Helper.createResolvingOobChannelBuilder(String target,
ChannelCredentials creds)
Creates an out-of-band channel builder for LoadBalancer's own RPC needs, e.g., talking to an
external load-balancer service, that is specified by a target string and credentials.
|
protected abstract ManagedChannelBuilder<?> |
ForwardingChannelBuilder.delegate()
Returns the delegated
ManagedChannelBuilder . |
static ManagedChannelBuilder<?> |
ManagedChannelBuilder.forAddress(String name,
int port)
Creates a channel with the target's address and port number.
|
static ManagedChannelBuilder<?> |
ForwardingChannelBuilder.forAddress(String name,
int port)
This method serves to force sub classes to "hide" this static factory.
|
static ManagedChannelBuilder<?> |
ManagedChannelBuilder.forTarget(String target)
Creates a channel with a target string, which can be either a valid
NameResolver -compliant URI, or an authority string. |
static ManagedChannelBuilder<?> |
ForwardingChannelBuilder.forTarget(String target)
This method serves to force sub classes to "hide" this static factory.
|
ManagedChannelBuilder<?> |
ManagedChannelProvider.NewChannelBuilderResult.getChannelBuilder() |
static ManagedChannelBuilder<?> |
Grpc.newChannelBuilder(String target,
ChannelCredentials creds)
Creates a channel builder with a target string and credentials.
|
static ManagedChannelBuilder<?> |
Grpc.newChannelBuilderForAddress(String host,
int port,
ChannelCredentials creds)
Creates a channel builder from a host, port, and credentials.
|
Modifier and Type | Method and Description |
---|---|
static ManagedChannelProvider.NewChannelBuilderResult |
ManagedChannelProvider.NewChannelBuilderResult.channelBuilder(ManagedChannelBuilder<?> builder) |