public class GlobalClientInterceptorRegistry
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
ClientInterceptor
s that should be registered
globally. The interceptors will be applied in the same order they are added to this registry.
Note: The ClientInterceptors that were applied last to a Channel
will be called first.
Constructor and Description |
---|
GlobalClientInterceptorRegistry() |
Modifier and Type | Method and Description |
---|---|
GlobalClientInterceptorRegistry |
addClientInterceptors(io.grpc.ClientInterceptor interceptor)
Adds the given
ClientInterceptor to the list of globally registered interceptors. |
void |
init() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
@PostConstruct public void init()
public GlobalClientInterceptorRegistry addClientInterceptors(io.grpc.ClientInterceptor interceptor)
ClientInterceptor
to the list of globally registered interceptors.interceptor
- The interceptor to add.