Class CallContextInterceptor

java.lang.Object
com.illumon.iris.controller.service.CallContextInterceptor
All Implemented Interfaces:
io.deephaven.shadow.core.io.grpc.ServerInterceptor

public class CallContextInterceptor extends Object implements io.deephaven.shadow.core.io.grpc.ServerInterceptor
This interceptor simply captures the client address into the global context for RPCs to use for logging
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.deephaven.shadow.core.io.grpc.Context.Key<SocketAddress>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <ReqT, RespT>
    io.deephaven.shadow.core.io.grpc.ServerCall.Listener<ReqT>
    interceptCall(io.deephaven.shadow.core.io.grpc.ServerCall<ReqT,RespT> serverCall, io.deephaven.shadow.core.io.grpc.Metadata metadata, io.deephaven.shadow.core.io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CLIENT_HOST_KEY

      public static final io.deephaven.shadow.core.io.grpc.Context.Key<SocketAddress> CLIENT_HOST_KEY
  • Constructor Details

    • CallContextInterceptor

      public CallContextInterceptor()
  • Method Details

    • interceptCall

      public <ReqT, RespT> io.deephaven.shadow.core.io.grpc.ServerCall.Listener<ReqT> interceptCall(io.deephaven.shadow.core.io.grpc.ServerCall<ReqT,RespT> serverCall, io.deephaven.shadow.core.io.grpc.Metadata metadata, io.deephaven.shadow.core.io.grpc.ServerCallHandler<ReqT,RespT> serverCallHandler)
      Specified by:
      interceptCall in interface io.deephaven.shadow.core.io.grpc.ServerInterceptor