| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.inprocess |
The in-process transport which is for when a server is in the same process as the client.
|
| io.grpc.internal | |
| io.grpc.netty |
The main transport implementation based on Netty,
for both the client and the server.
|
| io.grpc.okhttp |
A lightweight transport based on
OkHttp, mainly for use on Android
(client-only).
|
| 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 method 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.
|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InProcessChannelBuilder
Builder for a channel that issues in-process requests.
|
| Modifier and Type | Class and Description |
|---|---|
class |
io.grpc.internal.AbstractManagedChannelImplBuilder<T extends io.grpc.internal.AbstractManagedChannelImplBuilder<T>> |
| Modifier and Type | Class and Description |
|---|---|
class |
NettyChannelBuilder
A builder to help simplify construction of channels using the Netty transport.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OkHttpChannelBuilder
Convenience class for building channels with the OkHttp transport.
|