| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.auth |
Implementations of
CallCredentials and authentication related API. |
| io.grpc.services |
Service definitions and utilities for the pre-defined gRPC services.
|
| 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 |
|---|---|
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 |
|---|---|
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>> |
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>> |
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>> |
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>> |
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>> |
AbstractFutureStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel,
CallOptions callOptions)
Returns a new future 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>> |
AbstractAsyncStub.newStub(AbstractStub.StubFactory<T> factory,
Channel channel,
CallOptions callOptions)
Returns a new async 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() |