Class ProxyServiceInterceptor

java.lang.Object
com.oracle.coherence.grpc.proxy.common.ProxyServiceInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public class ProxyServiceInterceptor extends Object implements io.grpc.ServerInterceptor
An interceptor for the proxy service.
  • Field Details

    • KEY_REMOTE_ADDRESS

      public static final io.grpc.Context.Key<SocketAddress> 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 interface io.grpc.ServerInterceptor
    • getRemoteAddress

      public static SocketAddress getRemoteAddress()
      Return the remote address for the current call.
      Returns:
      the remote address for the current call