| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.auth |
Implementations of
CallCredentials and authentication related API. |
| io.grpc.channelz.v1 | |
| io.grpc.health.v1 | |
| io.grpc.lb.v1 | |
| io.grpc.protobuf.services |
Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.
|
| io.grpc.reflection.v1alpha | |
| io.grpc.stub |
API for the Stub layer.
|
| io.grpc.util |
Utilities with advanced features in the core layer that user can optionally use.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ManagedChannel
A
Channel that provides lifecycle management. |
| Modifier and Type | Method and Description |
|---|---|
Channel |
LoadBalancer.Subchannel.asChannel()
(Internal use only) returns a
Channel that is backed by this Subchannel. |
static Channel |
ClientInterceptors.intercept(Channel channel,
ClientInterceptor... interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
static Channel |
ClientInterceptors.intercept(Channel channel,
List<? extends ClientInterceptor> interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
static Channel |
ClientInterceptors.interceptForward(Channel channel,
ClientInterceptor... interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
static Channel |
ClientInterceptors.interceptForward(Channel channel,
List<? extends ClientInterceptor> interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
abstract Channel |
BinaryLog.wrapChannel(Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
static Channel |
ClientInterceptors.intercept(Channel channel,
ClientInterceptor... interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
static Channel |
ClientInterceptors.intercept(Channel channel,
List<? extends ClientInterceptor> interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
<ReqT,RespT> |
ClientInterceptor.interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
|
static Channel |
ClientInterceptors.interceptForward(Channel channel,
ClientInterceptor... interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
static Channel |
ClientInterceptors.interceptForward(Channel channel,
List<? extends ClientInterceptor> interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
abstract Channel |
BinaryLog.wrapChannel(Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
ClientAuthInterceptor.interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected ChannelzGrpc.ChannelzStub |
ChannelzGrpc.ChannelzStub.build(Channel channel,
CallOptions callOptions) |
protected ChannelzGrpc.ChannelzBlockingStub |
ChannelzGrpc.ChannelzBlockingStub.build(Channel channel,
CallOptions callOptions) |
protected ChannelzGrpc.ChannelzFutureStub |
ChannelzGrpc.ChannelzFutureStub.build(Channel channel,
CallOptions callOptions) |
static ChannelzGrpc.ChannelzBlockingStub |
ChannelzGrpc.newBlockingStub(Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
static ChannelzGrpc.ChannelzFutureStub |
ChannelzGrpc.newFutureStub(Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
|
static ChannelzGrpc.ChannelzStub |
ChannelzGrpc.newStub(Channel channel)
Creates a new async stub that supports all call types for the service
|
| Modifier and Type | Method and Description |
|---|---|
protected HealthGrpc.HealthStub |
HealthGrpc.HealthStub.build(Channel channel,
CallOptions callOptions) |
protected HealthGrpc.HealthBlockingStub |
HealthGrpc.HealthBlockingStub.build(Channel channel,
CallOptions callOptions) |
protected HealthGrpc.HealthFutureStub |
HealthGrpc.HealthFutureStub.build(Channel channel,
CallOptions callOptions) |
static HealthGrpc.HealthBlockingStub |
HealthGrpc.newBlockingStub(Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
static HealthGrpc.HealthFutureStub |
HealthGrpc.newFutureStub(Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
|
static HealthGrpc.HealthStub |
HealthGrpc.newStub(Channel channel)
Creates a new async stub that supports all call types for the service
|
| Modifier and Type | Method and Description |
|---|---|
protected LoadBalancerGrpc.LoadBalancerStub |
LoadBalancerGrpc.LoadBalancerStub.build(Channel channel,
CallOptions callOptions) |
protected LoadBalancerGrpc.LoadBalancerBlockingStub |
LoadBalancerGrpc.LoadBalancerBlockingStub.build(Channel channel,
CallOptions callOptions) |
protected LoadBalancerGrpc.LoadBalancerFutureStub |
LoadBalancerGrpc.LoadBalancerFutureStub.build(Channel channel,
CallOptions callOptions) |
static LoadBalancerGrpc.LoadBalancerBlockingStub |
LoadBalancerGrpc.newBlockingStub(Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
static LoadBalancerGrpc.LoadBalancerFutureStub |
LoadBalancerGrpc.newFutureStub(Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
|
static LoadBalancerGrpc.LoadBalancerStub |
LoadBalancerGrpc.newStub(Channel channel)
Creates a new async stub that supports all call types for the service
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
BinaryLogProvider.wrapChannel(Channel channel)
Wraps a channel to provide binary logging on
ClientCalls as needed. |
| Modifier and Type | Method and Description |
|---|---|
Channel |
BinaryLogProvider.wrapChannel(Channel channel)
Wraps a channel to provide binary logging on
ClientCalls as needed. |
| Modifier and Type | Method and Description |
|---|---|
protected ServerReflectionGrpc.ServerReflectionStub |
ServerReflectionGrpc.ServerReflectionStub.build(Channel channel,
CallOptions callOptions) |
protected ServerReflectionGrpc.ServerReflectionBlockingStub |
ServerReflectionGrpc.ServerReflectionBlockingStub.build(Channel channel,
CallOptions callOptions) |
protected ServerReflectionGrpc.ServerReflectionFutureStub |
ServerReflectionGrpc.ServerReflectionFutureStub.build(Channel channel,
CallOptions callOptions) |
static ServerReflectionGrpc.ServerReflectionBlockingStub |
ServerReflectionGrpc.newBlockingStub(Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
static ServerReflectionGrpc.ServerReflectionFutureStub |
ServerReflectionGrpc.newFutureStub(Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
|
static ServerReflectionGrpc.ServerReflectionStub |
ServerReflectionGrpc.newStub(Channel channel)
Creates a new async stub that supports all call types for the service
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
AbstractStub.getChannel()
The underlying channel of the stub.
|
| Modifier and Type | Method and Description |
|---|---|
static <ReqT,RespT> |
ClientCalls.blockingServerStreamingCall(Channel channel,
MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
ReqT req)
Executes a server-streaming call returning a blocking
Iterator over the
response stream. |
static <ReqT,RespT> |
ClientCalls.blockingUnaryCall(Channel channel,
MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
ReqT req)
Executes a unary call and blocks on the response.
|
protected abstract S |
AbstractStub.build(Channel channel,
CallOptions callOptions)
Returns a new stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractBlockingStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel)
Returns a new blocking stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractAsyncStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel)
Returns a new async stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel)
Returns a new stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractFutureStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel)
Returns a new future stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractBlockingStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel,
CallOptions callOptions)
Returns a new blocking stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractAsyncStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel,
CallOptions callOptions)
Returns a new async stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel,
CallOptions callOptions)
Returns a new stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractFutureStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel,
CallOptions callOptions)
Returns a new future stub with the given channel for the provided method configurations.
|
T |
AbstractStub.StubFactory.newStub(Channel channel,
CallOptions callOptions) |
S |
AbstractStub.withChannel(Channel newChannel)
Deprecated.
|
| Constructor and Description |
|---|
AbstractAsyncStub(Channel channel,
CallOptions callOptions) |
AbstractBlockingStub(Channel channel,
CallOptions callOptions) |
AbstractFutureStub(Channel channel,
CallOptions callOptions) |
AbstractStub(Channel channel)
Constructor for use by subclasses, with the default
CallOptions. |
AbstractStub(Channel channel,
CallOptions callOptions)
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
ForwardingSubchannel.asChannel() |