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.
|
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. |
abstract T |
ManagedChannelBuilder.intercept(ClientInterceptor... interceptors)
Adds interceptors that will be called before the channel performs its real work.
|
T |
ForwardingChannelBuilder.intercept(ClientInterceptor... interceptors) |
static Channel |
ClientInterceptors.interceptForward(Channel channel,
ClientInterceptor... interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
Modifier and Type | Method and Description |
---|---|
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. |
abstract T |
ManagedChannelBuilder.intercept(List<ClientInterceptor> interceptors)
Adds interceptors that will be called before the channel performs its real work.
|
T |
ForwardingChannelBuilder.intercept(List<ClientInterceptor> interceptors) |
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. |
Modifier and Type | Class and Description |
---|---|
class |
ClientAuthInterceptor
Deprecated.
use
MoreCallCredentials.from(Credentials) instead. |
Modifier and Type | Method and Description |
---|---|
protected abstract ClientInterceptor |
BinaryLogProvider.getClientInterceptor(String fullMethodName,
CallOptions callOptions)
Returns a
ClientInterceptor for binary logging. |
Modifier and Type | Method and Description |
---|---|
static ClientInterceptor |
MetadataUtils.newAttachHeadersInterceptor(Metadata extraHeaders)
Returns a client interceptor that attaches a set of headers to requests.
|
static ClientInterceptor |
MetadataUtils.newCaptureMetadataInterceptor(AtomicReference<Metadata> headersCapture,
AtomicReference<Metadata> trailersCapture)
Captures the last received metadata on a channel.
|
Modifier and Type | Method and Description |
---|---|
S |
AbstractStub.withInterceptors(ClientInterceptor... interceptors)
Returns a new stub that has the given interceptors attached to the underlying channel.
|