Package org.glowroot.agent.plugin.api
Interface OptionalThreadContext
- All Superinterfaces:
ThreadContext
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Nested classes/interfaces inherited from interface org.glowroot.agent.plugin.api.ThreadContext
ThreadContext.Priority, ThreadContext.ServletRequestInfo
-
Method Summary
Modifier and TypeMethodDescriptionboolean
startTransaction
(String transactionType, String transactionName, MessageSupplier messageSupplier, TimerName timerName) If there is no active transaction, a new transaction is started.startTransaction
(String transactionType, String transactionName, MessageSupplier messageSupplier, TimerName timerName, OptionalThreadContext.AlreadyInTransactionBehavior alreadyInTransactionBehavior) Methods inherited from interface org.glowroot.agent.plugin.api.ThreadContext
addErrorEntry, addErrorEntry, addErrorEntry, addTransactionAttribute, createAuxThreadContext, getServletRequestInfo, setServletRequestInfo, setTransactionAsync, setTransactionAsyncComplete, setTransactionError, setTransactionError, setTransactionError, setTransactionName, setTransactionOuter, setTransactionSlowThreshold, setTransactionType, setTransactionUser, startAsyncQueryEntry, startAsyncServiceCallEntry, startAsyncTraceEntry, startQueryEntry, startQueryEntry, startServiceCallEntry, startTimer, startTraceEntry, trackResourceAcquired, trackResourceReleased
-
Method Details
-
isInTransaction
boolean isInTransaction() -
startTransaction
TraceEntry startTransaction(String transactionType, String transactionName, MessageSupplier messageSupplier, TimerName timerName) If there is no active transaction, a new transaction is started. If there is already an active transaction, this method acts the same asThreadContext.startTraceEntry(MessageSupplier, TimerName)
(the transaction name and type are not modified on the existing transaction). -
startTransaction
TraceEntry startTransaction(String transactionType, String transactionName, MessageSupplier messageSupplier, TimerName timerName, OptionalThreadContext.AlreadyInTransactionBehavior alreadyInTransactionBehavior)
-