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)
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) |
static <R,T> R |
put(String key,
T value) |
public abstract void bind(io.grpc.Metadata metadata)
interceptCall(ServerCall, Metadata, ServerCallHandler)
call happens and
allows extracting data from the metadata to the vert.x context.metadata
- the grpc connection contextpublic <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.ServerInterceptor
public static <T> T get(String key)
public static <T> T getOrDefault(String key, T defaultValue)
public static <R,T> R put(String key, T value)
Copyright © 2022 Eclipse. All rights reserved.