Package org.apache.cassandra.tracing
Class TraceStateImpl
- java.lang.Object
-
- org.apache.cassandra.tracing.TraceState
-
- org.apache.cassandra.tracing.TraceStateImpl
-
- All Implemented Interfaces:
ProgressEventNotifier
public class TraceStateImpl extends TraceState
ThreadLocal state for a tracing session. The presence of an instance of this class as a ThreadLocal denotes that an operation is being traced.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.tracing.TraceState
TraceState.Status
-
-
Field Summary
Fields Modifier and Type Field Description static int
WAIT_FOR_PENDING_EVENTS_TIMEOUT_SECS
-
Fields inherited from class org.apache.cassandra.tracing.TraceState
coordinator, sessionId, sessionIdBytes, traceType, ttl, watch
-
-
Constructor Summary
Constructors Constructor Description TraceStateImpl(InetAddressAndPort coordinator, TimeUUID sessionId, Tracing.TraceType traceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
traceImpl(java.lang.String message)
protected void
waitForPendingEvents()
Wait on submitted futures-
Methods inherited from class org.apache.cassandra.tracing.TraceState
acquireReference, addProgressListener, elapsed, enableActivityNotification, notifyActivity, releaseReference, removeProgressListener, stop, trace, trace, trace, trace, waitActivity
-
-
-
-
Constructor Detail
-
TraceStateImpl
public TraceStateImpl(InetAddressAndPort coordinator, TimeUUID sessionId, Tracing.TraceType traceType)
-
-
Method Detail
-
traceImpl
protected void traceImpl(java.lang.String message)
- Specified by:
traceImpl
in classTraceState
-
waitForPendingEvents
protected void waitForPendingEvents()
Wait on submitted futures- Overrides:
waitForPendingEvents
in classTraceState
-
-