Package org.hertsstack.rpc
Interface HertsRpcInterceptor
-
public interface HertsRpcInterceptor
Herts server interceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <ReqT,RespT>
voidbeforeCallMethod(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata requestHeaders)
Beforee interceptvoid
setResponseMetadata(io.grpc.Metadata metadata)
Set response grpc metadata
-
-
-
Method Detail
-
setResponseMetadata
void setResponseMetadata(io.grpc.Metadata metadata)
Set response grpc metadata- Parameters:
metadata
- Metadata
-
beforeCallMethod
<ReqT,RespT> void beforeCallMethod(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata requestHeaders)
Beforee intercept- Type Parameters:
ReqT
- Request genericsRespT
- Response generics- Parameters:
call
- ServerCallrequestHeaders
- Metadata
-
-