com.levigo.util.log.util
Class LogContextPreservingCallable<V>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogContextPreservingCallable
public LogContextPreservingCallable(Callable<V> delegate)
call
public V call()
throws Exception
- Specified by:
call
in interface Callable<V>
- Throws:
Exception
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.