ro.isdc.wro.config.support
Class ContextPropagatingCallable<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextPropagatingCallable
public ContextPropagatingCallable(Callable<T> decorated)
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.