Package com.newrelic.agent.bridge
Interface CrossProcessState
-
- All Known Implementing Classes:
NoOpCrossProcessState
public interface CrossProcessState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetRequestMetadata()java.lang.StringgetResponseMetadata()voidprocessInboundResponseHeaders(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.voidprocessOutboundRequestHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders)Add New Relic "X" headers to the request headers of outbound external requests.voidprocessOutboundRequestHeaders(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.voidprocessOutboundResponseHeaders(com.newrelic.api.agent.OutboundHeaders outboundHeaders, long contentLength)Add New Relic "X" headers to our response (to the request that initiated this transaction)voidprocessRequestMetadata(java.lang.String requestMetadata)Process inbound request metadata.voidprocessResponseMetadata(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-
-
-