com.levigo.util.log.util
Class LogContextPreservingCallable<V>

java.lang.Object
  extended by com.levigo.util.log.util.LogContextPreservingCallable<V>
All Implemented Interfaces:
Callable<V>

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

Alternative Callable class which also gives the new thread the MDC and NDC context of the parent thread, thus preserving the log context.


Constructor Summary
LogContextPreservingCallable(Callable<V> delegate)
           
 
Method Summary
 V call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogContextPreservingCallable

public LogContextPreservingCallable(Callable<V> delegate)
Method Detail

call

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


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.