@ThreadSafe public final class ChannelIdInjector extends Object implements io.grpc.ClientInterceptor
Modifier and Type | Field and Description |
---|---|
static io.grpc.Metadata.Key<UUID> |
S_CLIENT_ID_KEY
Metadata key for the channel Id.
|
Constructor and Description |
---|
ChannelIdInjector(UUID channelId)
Creates the injector that augments the outgoing metadata with given Id.
|
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
io.grpc.Channel next) |
public static final io.grpc.Metadata.Key<UUID> S_CLIENT_ID_KEY
public ChannelIdInjector(UUID channelId)
channelId
- channel idCopyright © 2023. All Rights Reserved.