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 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 a ManagedChannelBuilder with client interceptors.
      Parameters:
      builder - the builder to configure
      interceptors - the non-null list of interceptors to be applied to the channel
      mergeWithGlobalInterceptors - 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:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean