Uses of Interface
io.grpc.ClientInterceptor
Packages that use ClientInterceptor
Package
Description
The gRPC core public API.
Interfaces and implementations that are internal to gRPC.
Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.
API for the Stub layer.
-
Uses of ClientInterceptor in io.grpc
Fields in io.grpc declared as ClientInterceptorModifier and TypeFieldDescriptionprivate final ClientInterceptor
ClientInterceptors.InterceptorChannel.interceptor
private ClientInterceptor
InternalConfigSelector.Result.Builder.interceptor
InternalConfigSelector.Result.interceptor
Methods in io.grpc that return ClientInterceptorModifier and TypeMethodDescriptionInternalConfigSelector.Result.getInterceptor()
Returns an interceptor that will be applies to calls.ManagedChannelBuilder.InterceptorFactory.newInterceptor
(String target) (package private) static <WReqT,
WRespT>
ClientInterceptorClientInterceptors.wrapClientInterceptor
(ClientInterceptor interceptor, MethodDescriptor.Marshaller<WReqT> reqMarshaller, MethodDescriptor.Marshaller<WRespT> respMarshaller) Creates a new ClientInterceptor that transforms requests intoWReqT
and responses intoWRespT
before passing them into theinterceptor
.static <ReqT,
RespT>
ClientInterceptorInternalClientInterceptors.wrapClientInterceptor
(ClientInterceptor interceptor, MethodDescriptor.Marshaller<ReqT> reqMarshaller, MethodDescriptor.Marshaller<RespT> respMarshaller) Methods in io.grpc with parameters of type ClientInterceptorModifier and TypeMethodDescriptionstatic Channel
ClientInterceptors.intercept
(Channel channel, ClientInterceptor... interceptors) Create a newChannel
that will callinterceptors
before starting a call on the given channel.ForwardingChannelBuilder.intercept
(ClientInterceptor... interceptors) ForwardingChannelBuilder2.intercept
(ClientInterceptor... interceptors) abstract T
ManagedChannelBuilder.intercept
(ClientInterceptor... interceptors) Adds interceptors that will be called before the channel performs its real work.static Channel
ClientInterceptors.interceptForward
(Channel channel, ClientInterceptor... interceptors) Create a newChannel
that will callinterceptors
before starting a call on the given channel.InternalConfigSelector.Result.Builder.setInterceptor
(ClientInterceptor interceptor) Sets the interceptor.(package private) static <WReqT,
WRespT>
ClientInterceptorClientInterceptors.wrapClientInterceptor
(ClientInterceptor interceptor, MethodDescriptor.Marshaller<WReqT> reqMarshaller, MethodDescriptor.Marshaller<WRespT> respMarshaller) Creates a new ClientInterceptor that transforms requests intoWReqT
and responses intoWRespT
before passing them into theinterceptor
.static <ReqT,
RespT>
ClientInterceptorInternalClientInterceptors.wrapClientInterceptor
(ClientInterceptor interceptor, MethodDescriptor.Marshaller<ReqT> reqMarshaller, MethodDescriptor.Marshaller<RespT> respMarshaller) Method parameters in io.grpc with type arguments of type ClientInterceptorModifier and TypeMethodDescriptionstatic Channel
ClientInterceptors.intercept
(Channel channel, List<? extends ClientInterceptor> interceptors) Create a newChannel
that will callinterceptors
before starting a call on the given channel.ForwardingChannelBuilder.intercept
(List<ClientInterceptor> interceptors) ForwardingChannelBuilder2.intercept
(List<ClientInterceptor> interceptors) abstract T
ManagedChannelBuilder.intercept
(List<ClientInterceptor> interceptors) Adds interceptors that will be called before the channel performs its real work.static Channel
ClientInterceptors.interceptForward
(Channel channel, List<? extends ClientInterceptor> interceptors) Create a newChannel
that will callinterceptors
before starting a call on the given channel.Constructors in io.grpc with parameters of type ClientInterceptorModifierConstructorDescriptionprivate
InterceptorChannel
(Channel channel, ClientInterceptor interceptor) private
Result
(Status status, Object config, ClientInterceptor interceptor) -
Uses of ClientInterceptor in io.grpc.internal
Classes in io.grpc.internal that implement ClientInterceptorModifier and TypeClassDescriptionprivate static final class
Fields in io.grpc.internal with type parameters of type ClientInterceptorModifier and TypeFieldDescriptionprivate final List
<ClientInterceptor> ManagedChannelImplBuilder.interceptors
Methods in io.grpc.internal that return types with arguments of type ClientInterceptorModifier and TypeMethodDescription(package private) List
<ClientInterceptor> ManagedChannelImplBuilder.getEffectiveInterceptors
(String computedTarget) Methods in io.grpc.internal with parameters of type ClientInterceptorModifier and TypeMethodDescriptionManagedChannelImplBuilder.intercept
(ClientInterceptor... interceptors) Method parameters in io.grpc.internal with type arguments of type ClientInterceptorModifier and TypeMethodDescriptionManagedChannelImplBuilder.intercept
(List<ClientInterceptor> interceptors) Constructor parameters in io.grpc.internal with type arguments of type ClientInterceptorModifierConstructorDescription(package private)
ManagedChannelImpl
(ManagedChannelImplBuilder builder, ClientTransportFactory clientTransportFactory, URI targetUri, NameResolverProvider nameResolverProvider, BackoffPolicy.Provider backoffPolicyProvider, ObjectPool<? extends Executor> balancerRpcExecutorPool, com.google.common.base.Supplier<com.google.common.base.Stopwatch> stopwatchSupplier, List<ClientInterceptor> interceptors, TimeProvider timeProvider) -
Uses of ClientInterceptor in io.grpc.protobuf.services
Classes in io.grpc.protobuf.services that implement ClientInterceptorModifier and TypeClassDescriptionprivate final class
The pipeline of interceptors is hard coded when theManagedChannel
is created.Fields in io.grpc.protobuf.services declared as ClientInterceptorMethods in io.grpc.protobuf.services that return ClientInterceptorModifier and TypeMethodDescriptionprotected abstract ClientInterceptor
BinaryLogProvider.getClientInterceptor
(String fullMethodName, CallOptions callOptions) Returns aClientInterceptor
for binary logging.BinaryLogProviderImpl.getClientInterceptor
(String fullMethodName, CallOptions callOptions) BinlogHelper.getClientInterceptor
(long callId) -
Uses of ClientInterceptor in io.grpc.stub
Classes in io.grpc.stub that implement ClientInterceptorModifier and TypeClassDescriptionprivate static final class
private static final class
Methods in io.grpc.stub that return ClientInterceptorModifier and TypeMethodDescriptionstatic 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.Methods in io.grpc.stub with parameters of type ClientInterceptorModifier and TypeMethodDescriptionfinal S
AbstractStub.withInterceptors
(ClientInterceptor... interceptors) Returns a new stub that has the given interceptors attached to the underlying channel.