Actually, decorate the runnables too, but apply the decoration in a
decorator on the thread so that if a runnable/callable is passed to
the thread, the decoration will be applied.

This allows users of OrderedExecutor/Scheduler to use
executor.chooseThread() for CompletableFuture async handlers and still
get things like the MDC context.


[ Full content available at: https://github.com/apache/bookkeeper/pull/1729 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to