Uses of Interface
io.grpc.ClientInterceptor
-
Packages that use ClientInterceptor Package Description io.grpc The gRPC core public API.io.grpc.internal Interfaces and implementations that are internal to gRPC.io.grpc.protobuf.services Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.io.grpc.stub API for the Stub layer. -
-
Uses of ClientInterceptor in io.grpc
Fields in io.grpc declared as ClientInterceptor Modifier and Type Field Description private ClientInterceptor
ClientInterceptors.InterceptorChannel. interceptor
private ClientInterceptor
InternalConfigSelector.Result.Builder. interceptor
ClientInterceptor
InternalConfigSelector.Result. interceptor
Methods in io.grpc that return ClientInterceptor Modifier and Type Method Description ClientInterceptor
InternalConfigSelector.Result. getInterceptor()
Returns an interceptor that will be applies to calls.ClientInterceptor
ManagedChannelBuilder.InterceptorFactory. newInterceptor(java.lang.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 ClientInterceptor Modifier and Type Method Description static Channel
ClientInterceptors. intercept(Channel channel, ClientInterceptor... interceptors)
Create a newChannel
that will callinterceptors
before starting a call on the given channel.T
ForwardingChannelBuilder. intercept(ClientInterceptor... interceptors)
T
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
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 ClientInterceptor Modifier and Type Method Description static Channel
ClientInterceptors. intercept(Channel channel, java.util.List<? extends ClientInterceptor> interceptors)
Create a newChannel
that will callinterceptors
before starting a call on the given channel.T
ForwardingChannelBuilder. intercept(java.util.List<ClientInterceptor> interceptors)
T
ForwardingChannelBuilder2. intercept(java.util.List<ClientInterceptor> interceptors)
abstract T
ManagedChannelBuilder. intercept(java.util.List<ClientInterceptor> interceptors)
Adds interceptors that will be called before the channel performs its real work.static Channel
ClientInterceptors. interceptForward(Channel channel, java.util.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 ClientInterceptor Constructor Description InterceptorChannel(Channel channel, ClientInterceptor interceptor)
Result(Status status, java.lang.Object config, ClientInterceptor interceptor)
-
Uses of ClientInterceptor in io.grpc.internal
Classes in io.grpc.internal that implement ClientInterceptor Modifier and Type Class Description private static class
ManagedChannelImplBuilder.InterceptorFactoryWrapper
Fields in io.grpc.internal with type parameters of type ClientInterceptor Modifier and Type Field Description private java.util.List<ClientInterceptor>
ManagedChannelImplBuilder. interceptors
Methods in io.grpc.internal that return types with arguments of type ClientInterceptor Modifier and Type Method Description (package private) java.util.List<ClientInterceptor>
ManagedChannelImplBuilder. getEffectiveInterceptors(java.lang.String computedTarget)
Methods in io.grpc.internal with parameters of type ClientInterceptor Modifier and Type Method Description ManagedChannelImplBuilder
ManagedChannelImplBuilder. intercept(ClientInterceptor... interceptors)
Method parameters in io.grpc.internal with type arguments of type ClientInterceptor Modifier and Type Method Description ManagedChannelImplBuilder
ManagedChannelImplBuilder. intercept(java.util.List<ClientInterceptor> interceptors)
Constructor parameters in io.grpc.internal with type arguments of type ClientInterceptor Constructor Description ManagedChannelImpl(ManagedChannelImplBuilder builder, ClientTransportFactory clientTransportFactory, java.net.URI targetUri, NameResolverProvider nameResolverProvider, BackoffPolicy.Provider backoffPolicyProvider, ObjectPool<? extends java.util.concurrent.Executor> balancerRpcExecutorPool, com.google.common.base.Supplier<com.google.common.base.Stopwatch> stopwatchSupplier, java.util.List<ClientInterceptor> interceptors, TimeProvider timeProvider)
-
Uses of ClientInterceptor in io.grpc.protobuf.services
Classes in io.grpc.protobuf.services that implement ClientInterceptor Modifier and Type Class Description private class
BinaryLogProvider.BinaryLogShim
The pipeline of interceptors is hard coded when theManagedChannel
is created.Fields in io.grpc.protobuf.services declared as ClientInterceptor Modifier and Type Field Description private ClientInterceptor
BinaryLogProvider. binaryLogShim
Methods in io.grpc.protobuf.services that return ClientInterceptor Modifier and Type Method Description protected abstract ClientInterceptor
BinaryLogProvider. getClientInterceptor(java.lang.String fullMethodName, CallOptions callOptions)
Returns aClientInterceptor
for binary logging.ClientInterceptor
BinaryLogProviderImpl. getClientInterceptor(java.lang.String fullMethodName, CallOptions callOptions)
ClientInterceptor
BinlogHelper. getClientInterceptor(long callId)
-
Uses of ClientInterceptor in io.grpc.stub
Classes in io.grpc.stub that implement ClientInterceptor Modifier and Type Class Description private static class
MetadataUtils.HeaderAttachingClientInterceptor
private static class
MetadataUtils.MetadataCapturingClientInterceptor
Methods in io.grpc.stub that return ClientInterceptor Modifier and Type Method Description static ClientInterceptor
MetadataUtils. newAttachHeadersInterceptor(Metadata extraHeaders)
Returns a client interceptor that attaches a set of headers to requests.static ClientInterceptor
MetadataUtils. newCaptureMetadataInterceptor(java.util.concurrent.atomic.AtomicReference<Metadata> headersCapture, java.util.concurrent.atomic.AtomicReference<Metadata> trailersCapture)
Captures the last received metadata on a channel.Methods in io.grpc.stub with parameters of type ClientInterceptor Modifier and Type Method Description S
AbstractStub. withInterceptors(ClientInterceptor... interceptors)
Returns a new stub that has the given interceptors attached to the underlying channel.
-