public abstract class BraveRunnable extends Object implements Runnable
Runnable implementation that wraps another Runnable and makes sure the wrapped Runnable will be executed in the
same Span/Trace context as the thread from which the Runnable was executed.
Is used by BraveExecutorService.BraveExecutorService| Constructor and Description |
|---|
BraveRunnable() |
| Modifier and Type | Method and Description |
|---|---|
static BraveRunnable |
create(Runnable runnable,
ServerSpanThreadBinder serverSpanThreadBinder)
Creates a new instance.
|
void |
run() |
public static BraveRunnable create(Runnable runnable, ServerSpanThreadBinder serverSpanThreadBinder)
runnable - The wrapped Callable.serverSpanThreadBinder - ServerSpan thread binder.Copyright © 2016. All rights reserved.