ro.isdc.wro.config.support
Class ContextPropagatingCallable<T>

java.lang.Object
  extended by ro.isdc.wro.config.support.ContextPropagatingCallable<T>
All Implemented Interfaces:
Runnable, Callable<T>

public class ContextPropagatingCallable<T>
extends Object
implements Callable<T>, Runnable

A Callable decorator responsible for propagating the correlationId to the decorated callable.

Since:
1.4.6
Author:
Alex Objelean

Constructor Summary
ContextPropagatingCallable(Callable<T> decorated)
           
 
Method Summary
 T call()
          
static ContextPropagatingCallable<Void> decorate(Runnable runnable)
           
 void run()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextPropagatingCallable

public ContextPropagatingCallable(Callable<T> decorated)
Method Detail

decorate

public static ContextPropagatingCallable<Void> decorate(Runnable runnable)

run

public void run()

Specified by:
run in interface Runnable

call

public T call()
       throws Exception

Specified by:
call in interface Callable<T>
Throws:
Exception


Copyright © 2008-2013. All Rights Reserved.