Class ProxyServiceInterceptor
java.lang.Object
com.oracle.coherence.grpc.proxy.common.ProxyServiceInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
An interceptor for the proxy service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.grpc.Context.Key
<SocketAddress> The context key for the client remote address. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketAddress
Return the remote address for the current call.<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT> interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Field Details
-
KEY_REMOTE_ADDRESS
The context key for the client remote address.
-
-
Constructor Details
-
ProxyServiceInterceptor
public ProxyServiceInterceptor()
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next) - Specified by:
interceptCall
in interfaceio.grpc.ServerInterceptor
-
getRemoteAddress
Return the remote address for the current call.- Returns:
- the remote address for the current call
-