Interface CrossProcessState

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getRequestMetadata()  
      java.lang.String getResponseMetadata()  
      void processInboundResponseHeaders​(com.newrelic.api.agent.InboundHeaders inboundHeaders, TracedMethod tracer, java.lang.String host, java.lang.String uri, boolean addRollupMetric)
      Process the "X-NewRelic-App-Data" header and generate External metrics for response.
      void processOutboundRequestHeaders​(com.newrelic.api.agent.OutboundHeaders outboundHeaders)
      Add New Relic "X" headers to the request headers of outbound external requests.
      void processOutboundRequestHeaders​(com.newrelic.api.agent.OutboundHeaders outboundHeaders, com.newrelic.api.agent.TracedMethod tracedMethod)
      Add New Relic "X" headers to the request headers of outbound external requests.
      void processOutboundResponseHeaders​(com.newrelic.api.agent.OutboundHeaders outboundHeaders, long contentLength)
      Add New Relic "X" headers to our response (to the request that initiated this transaction)
      void processRequestMetadata​(java.lang.String requestMetadata)
      Process inbound request metadata.
      void processResponseMetadata​(java.lang.String responseMetadata, java.net.URI uri)
      Process inbound response metadata.
    • Method Detail

      • processOutboundRequestHeaders

        void processOutboundRequestHeaders​(com.newrelic.api.agent.OutboundHeaders outboundHeaders)
        Add New Relic "X" headers to the request headers of outbound external requests.
        Parameters:
        outboundHeaders -
      • processOutboundRequestHeaders

        void processOutboundRequestHeaders​(com.newrelic.api.agent.OutboundHeaders outboundHeaders,
                                           com.newrelic.api.agent.TracedMethod tracedMethod)
        Add New Relic "X" headers to the request headers of outbound external requests.
        Parameters:
        outboundHeaders -
        tracedMethod -
      • processOutboundResponseHeaders

        void processOutboundResponseHeaders​(com.newrelic.api.agent.OutboundHeaders outboundHeaders,
                                            long contentLength)
        Add New Relic "X" headers to our response (to the request that initiated this transaction)
        Parameters:
        outboundHeaders -
        contentLength -
      • processInboundResponseHeaders

        void processInboundResponseHeaders​(com.newrelic.api.agent.InboundHeaders inboundHeaders,
                                           TracedMethod tracer,
                                           java.lang.String host,
                                           java.lang.String uri,
                                           boolean addRollupMetric)
        Process the "X-NewRelic-App-Data" header and generate External metrics for response.
        Parameters:
        inboundHeaders -
        tracer -
        host -
        uri -
        addRollupMetric -
      • getRequestMetadata

        java.lang.String getRequestMetadata()
        Returns:
        CAT and Synthetics encoded request metadata for outbound request.
      • processRequestMetadata

        void processRequestMetadata​(java.lang.String requestMetadata)
        Process inbound request metadata.
        Parameters:
        requestMetadata -
      • getResponseMetadata

        java.lang.String getResponseMetadata()
        Returns:
        CAT and Synthetics encoded response metadata for outbound response.
      • processResponseMetadata

        void processResponseMetadata​(java.lang.String responseMetadata,
                                     java.net.URI uri)
        Process inbound response metadata.
        Parameters:
        responseMetadata -
        uri -