T - the key and value type of the header this interceptor will attachpublic class HeaderAttachingInterceptor<T> extends Object implements io.grpc.ClientInterceptor
| Constructor and Description |
|---|
HeaderAttachingInterceptor(io.grpc.Metadata.Key<T> header,
T value)
Constructs a
HeaderAttachingInterceptor attaching metadata using the given header as key, paired
with the given value |
| Modifier and Type | Method and Description |
|---|---|
<REQ,RESP> io.grpc.ClientCall<REQ,RESP> |
interceptCall(io.grpc.MethodDescriptor<REQ,RESP> methodDescriptor,
io.grpc.CallOptions callOptions,
io.grpc.Channel channel) |
public HeaderAttachingInterceptor(io.grpc.Metadata.Key<T> header, T value)
HeaderAttachingInterceptor attaching metadata using the given header as key, paired
with the given valueheader - the Metadata.Key to attach on intercepted messagesvalue - the object of type T to attach on intercepted messagesCopyright © 2020–2022 AxonIQ BV. All rights reserved.