public abstract class ContextServerInterceptor extends Object implements io.grpc.ServerInterceptor
| Constructor and Description |
|---|
ContextServerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
bind(io.grpc.Metadata metadata,
ConcurrentMap<String,String> context)
This method is called before the
interceptCall(ServerCall, Metadata, ServerCallHandler) call happens and
allows extracting data from the metadata to the vert.x context. |
static <T> T |
get(String key) |
static <T> T |
getOrDefault(String key,
T defaultValue) |
<ReqT,RespT> |
interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata metadata,
io.grpc.ServerCallHandler<ReqT,RespT> handler) |
public abstract void bind(io.grpc.Metadata metadata,
ConcurrentMap<String,String> context)
interceptCall(ServerCall, Metadata, ServerCallHandler) call happens and
allows extracting data from the metadata to the vert.x context.metadata - the grpc connection contextcontext - the vertx context mappublic <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata metadata,
io.grpc.ServerCallHandler<ReqT,RespT> handler)
interceptCall in interface io.grpc.ServerInterceptorpublic static <T> T get(String key)
public static <T> T getOrDefault(String key, T defaultValue)
Copyright © 2021 Eclipse. All rights reserved.