public QueueTracer < ? > getCurrentQueueTracer ( ) { this . queueReadLock . lock ( ) ; try { QueueTracer < ? > tracer ; if ( this . queueConfig . enabled ) { // tracer = this.queueConfig.tracerMap.get(Thread.currentThread()); tracer = this . queueConfig . currentTracer . get ( ) ; if ( tracer == null ) { tracer = this . queueConfig . queueNullTracer ; } } else { tracer = this . queueConfig . queueNullTracer ; } return tracer ; } finally { this . queueReadLock . unlock ( ) ; } }
Returns the QueueTracer for the current thread . If no one was found a QueueNullTracer will be returned .