org.htrace.wrappers
Class TraceRunnable

java.lang.Object
  extended by org.htrace.wrappers.TraceRunnable
All Implemented Interfaces:
Runnable

public class TraceRunnable
extends Object
implements Runnable

Wrap a Runnable with a Span that survives a change in threads.


Constructor Summary
TraceRunnable(Runnable runnable)
           
TraceRunnable(Span parent, Runnable runnable)
           
TraceRunnable(Span parent, Runnable runnable, String description)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceRunnable

public TraceRunnable(Runnable runnable)

TraceRunnable

public TraceRunnable(Span parent,
                     Runnable runnable)

TraceRunnable

public TraceRunnable(Span parent,
                     Runnable runnable,
                     String description)
Method Detail

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2014. All Rights Reserved.