public class TransactionApiImpl
extends java.lang.Object
implements com.newrelic.agent.bridge.Transaction
| Modifier and Type | Field and Description |
|---|---|
static TransactionApiImpl |
INSTANCE |
| Constructor and Description |
|---|
TransactionApiImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptDistributedTraceHeaders(com.newrelic.api.agent.TransportType transportType,
com.newrelic.api.agent.Headers headers) |
void |
acceptDistributedTracePayload(com.newrelic.api.agent.DistributedTracePayload payload) |
void |
acceptDistributedTracePayload(java.lang.String payload) |
void |
addOutboundResponseHeaders() |
void |
beforeSendResponseHeaders() |
boolean |
clearTransaction() |
void |
convertToWebTransaction() |
com.newrelic.agent.bridge.TracedActivity |
createAndStartTracedActivity() |
com.newrelic.api.agent.DistributedTracePayload |
createDistributedTracePayload() |
boolean |
equals(java.lang.Object obj)
Two ApiImpl classes are equal if their wrapped Transactions are the same object.
|
void |
expireAllTokens() |
void |
finishFlyweightTracer(com.newrelic.agent.bridge.TracedMethod parent,
long startInNanos,
long finishInNanos,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodDesc,
java.lang.String metricName,
java.lang.String[] rollupMetricNames) |
java.util.Map<java.lang.String,java.lang.Object> |
getAgentAttributes() |
com.newrelic.agent.bridge.CrossProcessState |
getCrossProcessState() |
com.newrelic.api.agent.TracedMethod |
getLastTracer() |
java.lang.String |
getRequestMetadata() |
java.lang.String |
getResponseMetadata() |
com.newrelic.agent.bridge.Token |
getToken() |
com.newrelic.api.agent.TracedMethod |
getTracedMethod() |
protected Transaction |
getTransactionIfExists()
Get the thread's transaction.
|
com.newrelic.agent.bridge.WebResponse |
getWebResponse() |
int |
hashCode()
The hash code of an ApiImpl is equal to the hash code of its wrapped Transaction if it has one, else it is
necessarily equal to a constant.
|
void |
ignore() |
void |
ignoreApdex() |
void |
ignoreErrors() |
void |
insertDistributedTraceHeaders(com.newrelic.api.agent.Headers headers) |
boolean |
isAutoAppNamingEnabled() |
boolean |
isStarted() |
boolean |
isTransactionNameSet() |
boolean |
isWebRequestSet() |
boolean |
isWebResponseSet() |
boolean |
isWebTransaction() |
boolean |
markFirstByteOfResponse() |
boolean |
markLastByteOfResponse() |
void |
markResponseAtTxaEnd() |
boolean |
markResponseSent() |
void |
processRequestMetadata(java.lang.String metadata) |
void |
processResponseMetadata(java.lang.String metadata) |
void |
processResponseMetadata(java.lang.String metadata,
java.net.URI uri) |
void |
provideHeaders(com.newrelic.api.agent.InboundHeaders headers) |
boolean |
registerAsyncActivity(java.lang.Object asyncContext) |
void |
requestDestroyed() |
void |
requestInitialized(com.newrelic.api.agent.Request request,
com.newrelic.api.agent.Response response) |
void |
saveMessageParameters(java.util.Map<java.lang.String,java.lang.String> parameters) |
void |
setApplicationName(com.newrelic.api.agent.ApplicationNamePriority priority,
java.lang.String appName) |
boolean |
setTransactionName(com.newrelic.api.agent.TransactionNamePriority namePriority,
boolean override,
java.lang.String category,
java.lang.String... parts) |
boolean |
setTransactionName(com.newrelic.agent.bridge.TransactionNamePriority namePriority,
boolean override,
java.lang.String category,
java.lang.String... parts) |
void |
setTransportType(com.newrelic.api.agent.TransportType transportType) |
void |
setWebRequest(com.newrelic.api.agent.ExtendedRequest request) |
void |
setWebRequest(com.newrelic.api.agent.Request request) |
void |
setWebResponse(com.newrelic.api.agent.Response response) |
com.newrelic.agent.bridge.TracedMethod |
startFlyweightTracer() |
com.newrelic.api.agent.Segment |
startSegment(java.lang.String segmentName) |
com.newrelic.api.agent.Segment |
startSegment(java.lang.String category,
java.lang.String segmentName) |
public static TransactionApiImpl INSTANCE
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected Transaction getTransactionIfExists()
InstrumentationImplpublic boolean registerAsyncActivity(java.lang.Object asyncContext)
public boolean setTransactionName(com.newrelic.api.agent.TransactionNamePriority namePriority,
boolean override,
java.lang.String category,
java.lang.String... parts)
setTransactionName in interface com.newrelic.api.agent.Transactionpublic boolean isTransactionNameSet()
isTransactionNameSet in interface com.newrelic.api.agent.Transactionpublic com.newrelic.api.agent.TracedMethod getLastTracer()
getLastTracer in interface com.newrelic.api.agent.Transactionpublic com.newrelic.api.agent.TracedMethod getTracedMethod()
getTracedMethod in interface com.newrelic.api.agent.Transactionpublic void ignore()
ignore in interface com.newrelic.api.agent.Transactionpublic void ignoreApdex()
ignoreApdex in interface com.newrelic.api.agent.Transactionpublic void ignoreErrors()
ignoreErrors in interface com.newrelic.api.agent.Transactionpublic boolean setTransactionName(com.newrelic.agent.bridge.TransactionNamePriority namePriority,
boolean override,
java.lang.String category,
java.lang.String... parts)
public void beforeSendResponseHeaders()
public void addOutboundResponseHeaders()
addOutboundResponseHeaders in interface com.newrelic.api.agent.Transactionpublic boolean isStarted()
public void setApplicationName(com.newrelic.api.agent.ApplicationNamePriority priority,
java.lang.String appName)
public boolean isAutoAppNamingEnabled()
public boolean isWebRequestSet()
public boolean isWebResponseSet()
public void setWebRequest(com.newrelic.api.agent.Request request)
public void setWebResponse(com.newrelic.api.agent.Response response)
setWebResponse in interface com.newrelic.api.agent.Transactionpublic com.newrelic.agent.bridge.WebResponse getWebResponse()
public void convertToWebTransaction()
convertToWebTransaction in interface com.newrelic.api.agent.Transactionpublic boolean isWebTransaction()
isWebTransaction in interface com.newrelic.api.agent.Transactionpublic void requestInitialized(com.newrelic.api.agent.Request request,
com.newrelic.api.agent.Response response)
public void requestDestroyed()
public void saveMessageParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
public com.newrelic.agent.bridge.CrossProcessState getCrossProcessState()
public com.newrelic.agent.bridge.TracedMethod startFlyweightTracer()
public void finishFlyweightTracer(com.newrelic.agent.bridge.TracedMethod parent,
long startInNanos,
long finishInNanos,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodDesc,
java.lang.String metricName,
java.lang.String[] rollupMetricNames)
public java.util.Map<java.lang.String,java.lang.Object> getAgentAttributes()
public void provideHeaders(com.newrelic.api.agent.InboundHeaders headers)
public java.lang.String getRequestMetadata()
getRequestMetadata in interface com.newrelic.api.agent.Transactionpublic void processRequestMetadata(java.lang.String metadata)
processRequestMetadata in interface com.newrelic.api.agent.Transactionpublic java.lang.String getResponseMetadata()
getResponseMetadata in interface com.newrelic.api.agent.Transactionpublic void processResponseMetadata(java.lang.String metadata)
processResponseMetadata in interface com.newrelic.api.agent.Transactionpublic void processResponseMetadata(java.lang.String metadata,
java.net.URI uri)
processResponseMetadata in interface com.newrelic.api.agent.Transactionpublic void setWebRequest(com.newrelic.api.agent.ExtendedRequest request)
setWebRequest in interface com.newrelic.api.agent.Transactionpublic boolean markFirstByteOfResponse()
public boolean markLastByteOfResponse()
public void markResponseAtTxaEnd()
public boolean markResponseSent()
markResponseSent in interface com.newrelic.api.agent.Transactionpublic com.newrelic.agent.bridge.TracedActivity createAndStartTracedActivity()
public com.newrelic.api.agent.DistributedTracePayload createDistributedTracePayload()
createDistributedTracePayload in interface com.newrelic.api.agent.Transactionpublic com.newrelic.agent.bridge.Token getToken()
getToken in interface com.newrelic.api.agent.Transactionpublic com.newrelic.api.agent.Segment startSegment(java.lang.String segmentName)
startSegment in interface com.newrelic.api.agent.Transactionpublic com.newrelic.api.agent.Segment startSegment(java.lang.String category,
java.lang.String segmentName)
startSegment in interface com.newrelic.api.agent.Transactionpublic void expireAllTokens()
public boolean clearTransaction()
public void acceptDistributedTracePayload(java.lang.String payload)
acceptDistributedTracePayload in interface com.newrelic.api.agent.Transactionpublic void acceptDistributedTracePayload(com.newrelic.api.agent.DistributedTracePayload payload)
acceptDistributedTracePayload in interface com.newrelic.api.agent.Transactionpublic void insertDistributedTraceHeaders(com.newrelic.api.agent.Headers headers)
insertDistributedTraceHeaders in interface com.newrelic.api.agent.Transactionpublic void acceptDistributedTraceHeaders(com.newrelic.api.agent.TransportType transportType,
com.newrelic.api.agent.Headers headers)
acceptDistributedTraceHeaders in interface com.newrelic.api.agent.Transactionpublic void setTransportType(com.newrelic.api.agent.TransportType transportType)