Class TimedProcessor

  • All Implemented Interfaces:
    org.apache.thrift.TProcessor

    public class TimedProcessor
    extends Object
    implements org.apache.thrift.TProcessor
    A TProcessor which tracks the duration of an RPC and adds it to the metrics subsystem.
    • Constructor Detail

      • TimedProcessor

        public TimedProcessor​(org.apache.thrift.TProcessor next)
    • Method Detail

      • process

        public void process​(org.apache.thrift.protocol.TProtocol in,
                            org.apache.thrift.protocol.TProtocol out)
                     throws org.apache.thrift.TException
        Specified by:
        process in interface org.apache.thrift.TProcessor
        Throws:
        org.apache.thrift.TException