public class ThreadContextImpl extends Object implements ThreadContextPlus
OptionalThreadContext.AlreadyInTransactionBehaviorThreadContext.Priority, ThreadContext.ServletRequestInfopublic void addErrorEntry(String message)
addErrorEntry in interface ThreadContextpublic void addErrorEntry(String message, Throwable t)
addErrorEntry in interface ThreadContextpublic void addErrorEntry(Throwable t)
addErrorEntry in interface ThreadContextpublic void addTransactionAttribute(String name, String value)
addTransactionAttribute in interface ThreadContextpublic AuxThreadContext createAuxThreadContext()
createAuxThreadContext in interface ThreadContextpublic int getCurrentNestingGroupId()
getCurrentNestingGroupId in interface ThreadContextPluspublic int getCurrentSuppressionKeyId()
getCurrentSuppressionKeyId in interface ThreadContextPluspublic TimerImpl getCurrentTimer()
public ThreadContext.ServletRequestInfo getServletRequestInfo()
getServletRequestInfo in interface ThreadContextpublic long getThreadId()
public Transaction getTransaction()
public boolean isActive()
public boolean isInTransaction()
isInTransaction in interface OptionalThreadContextpublic void setCurrentNestingGroupId(int nestingGroupId)
setCurrentNestingGroupId in interface ThreadContextPluspublic void setCurrentSuppressionKeyId(int suppressionKeyId)
setCurrentSuppressionKeyId in interface ThreadContextPluspublic void setServletRequestInfo(ThreadContext.ServletRequestInfo servletRequestInfo)
setServletRequestInfo in interface ThreadContextpublic void setTransactionAsync()
setTransactionAsync in interface ThreadContextpublic void setTransactionAsyncComplete()
setTransactionAsyncComplete in interface ThreadContextpublic void setTransactionError(String message)
setTransactionError in interface ThreadContextpublic void setTransactionError(String message, Throwable t)
setTransactionError in interface ThreadContextpublic void setTransactionError(Throwable t)
setTransactionError in interface ThreadContextpublic void setTransactionName(String transactionName, int priority)
setTransactionName in interface ThreadContextpublic void setTransactionOuter()
setTransactionOuter in interface ThreadContextpublic void setTransactionSlowThreshold(long threshold,
TimeUnit unit,
int priority)
setTransactionSlowThreshold in interface ThreadContextpublic void setTransactionType(String transactionType, int priority)
setTransactionType in interface ThreadContextpublic void setTransactionUser(String user, int priority)
setTransactionUser in interface ThreadContextpublic AsyncQueryEntry startAsyncQueryEntry(String queryType, String queryText, QueryMessageSupplier queryMessageSupplier, TimerName timerName)
startAsyncQueryEntry in interface ThreadContextpublic AsyncTraceEntry startAsyncServiceCallEntry(String serviceCallType, String serviceCallText, MessageSupplier messageSupplier, TimerName timerName)
startAsyncServiceCallEntry in interface ThreadContextpublic AsyncTraceEntry startAsyncTraceEntry(MessageSupplier messageSupplier, TimerName timerName)
startAsyncTraceEntry in interface ThreadContextpublic QueryEntry startQueryEntry(String queryType, String queryText, long queryExecutionCount, QueryMessageSupplier queryMessageSupplier, TimerName timerName)
startQueryEntry in interface ThreadContextpublic QueryEntry startQueryEntry(String queryType, String queryText, QueryMessageSupplier queryMessageSupplier, TimerName timerName)
startQueryEntry in interface ThreadContextpublic TraceEntry startServiceCallEntry(String serviceCallType, String serviceCallText, MessageSupplier messageSupplier, TimerName timerName)
startServiceCallEntry in interface ThreadContextpublic Timer startTimer(TimerName timerName)
startTimer in interface ThreadContextpublic TraceEntry startTraceEntry(MessageSupplier messageSupplier, TimerName timerName)
startTraceEntry in interface ThreadContextpublic TraceEntry startTransaction(String transactionType, String transactionName, MessageSupplier messageSupplier, TimerName timerName)
startTransaction in interface OptionalThreadContextpublic TraceEntry startTransaction(String transactionType, String transactionName, MessageSupplier messageSupplier, TimerName timerName, OptionalThreadContext.AlreadyInTransactionBehavior alreadyInTransactionBehavior)
startTransaction in interface OptionalThreadContextpublic void trackResourceAcquired(Object resource, boolean withLocationStackTrace)
trackResourceAcquired in interface ThreadContextpublic void trackResourceReleased(Object resource)
trackResourceReleased in interface ThreadContextCopyright © 2011–2020 Glowroot contributors. All rights reserved.