public class AsyncTransactionService extends AbstractService implements HarvestListener
logger| Constructor and Description |
|---|
AsyncTransactionService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
protected int |
cacheSizeForTesting() |
protected void |
cleanUpPendingTransactions() |
protected void |
doStart() |
protected void |
doStop() |
com.newrelic.api.agent.Token |
extractIfPresent(java.lang.Object key)
This method should only be called from within a transaction object.
|
boolean |
ignoreIfUnstartedAsyncContext(java.lang.Object asyncContext) |
boolean |
isEnabled()
Is the service enabled.
|
boolean |
putIfAbsent(java.lang.Object key,
com.newrelic.api.agent.Token tx)
This method should only be called from within a transaction object.
|
boolean |
registerAsyncActivity(java.lang.Object context)
Deprecated.
|
boolean |
startAsyncActivity(java.lang.Object context)
Deprecated.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stopprotected void cleanUpPendingTransactions()
public boolean putIfAbsent(java.lang.Object key,
com.newrelic.api.agent.Token tx)
key - The key to registertx - The transaction associated with the key.public com.newrelic.api.agent.Token extractIfPresent(java.lang.Object key)
key - The key representing some async work.public void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
HarvestListenerbeforeHarvest in interface HarvestListener@Deprecated public boolean registerAsyncActivity(java.lang.Object context)
@Deprecated public boolean startAsyncActivity(java.lang.Object context)
public boolean ignoreIfUnstartedAsyncContext(java.lang.Object asyncContext)
protected int cacheSizeForTesting()
public void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListenerpublic boolean isEnabled()
Serviceprotected void doStart()
throws java.lang.Exception
doStart in class AbstractServicejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractServicejava.lang.Exception