org.htrace.wrappers
Class TraceCallable<V>

java.lang.Object
  extended by org.htrace.wrappers.TraceCallable<V>
All Implemented Interfaces:
Callable<V>

public class TraceCallable<V>
extends Object
implements Callable<V>

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


Constructor Summary
TraceCallable(Callable<V> impl)
           
TraceCallable(Span parent, Callable<V> impl)
           
TraceCallable(Span parent, Callable<V> impl, String description)
           
 
Method Summary
 V call()
           
 Callable<V> getImpl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceCallable

public TraceCallable(Callable<V> impl)

TraceCallable

public TraceCallable(Span parent,
                     Callable<V> impl)

TraceCallable

public TraceCallable(Span parent,
                     Callable<V> impl,
                     String description)
Method Detail

call

public V call()
       throws Exception
Specified by:
call in interface Callable<V>
Throws:
Exception

getImpl

public Callable<V> getImpl()


Copyright © 2014. All Rights Reserved.