Class ClientInterceptorsConfigurer
java.lang.Object
org.springframework.grpc.client.ClientInterceptorsConfigurer
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class ClientInterceptorsConfigurer
extends Object
implements org.springframework.beans.factory.InitializingBean
Configure a
ManagedChannelBuilder with client interceptors.- Author:
- Chris Bono, Andrey Litvitski
-
Constructor Summary
ConstructorsConstructorDescriptionClientInterceptorsConfigurer(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidconfigureInterceptors(io.grpc.ManagedChannelBuilder<?> builder, List<io.grpc.ClientInterceptor> interceptors, boolean mergeWithGlobalInterceptors, GrpcChannelFactory factory) Configure aManagedChannelBuilderwith client interceptors.
-
Constructor Details
-
ClientInterceptorsConfigurer
public ClientInterceptorsConfigurer(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
configureInterceptors
protected void configureInterceptors(io.grpc.ManagedChannelBuilder<?> builder, List<io.grpc.ClientInterceptor> interceptors, boolean mergeWithGlobalInterceptors, GrpcChannelFactory factory) Configure aManagedChannelBuilderwith client interceptors.- Parameters:
builder- the builder to configureinterceptors- the non-null list of interceptors to be applied to the channelmergeWithGlobalInterceptors- whether the provided interceptors should be blended with the global interceptors.factory- the channel factory used to filter global interceptors
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-