cloudtrace.instrument
Class TraceRunnable

java.lang.Object
  extended by cloudtrace.instrument.TraceRunnable
All Implemented Interfaces:
java.lang.Comparable<TraceRunnable>, java.lang.Runnable

public class TraceRunnable
extends java.lang.Object
implements java.lang.Runnable, java.lang.Comparable<TraceRunnable>

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


Constructor Summary
TraceRunnable(java.lang.Runnable runnable)
           
TraceRunnable(Span parent, java.lang.Runnable runnable)
           
 
Method Summary
 int compareTo(TraceRunnable o)
           
 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(java.lang.Runnable runnable)

TraceRunnable

public TraceRunnable(Span parent,
                     java.lang.Runnable runnable)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

compareTo

public int compareTo(TraceRunnable o)
Specified by:
compareTo in interface java.lang.Comparable<TraceRunnable>


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.