public static interface BlockingManager.BlockingExecutor
Note that this executor runs the task in the invoking thread if the thread is a blocking thread.
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
execute(Runnable runnable,
Object traceId)
Executes the given runnable on the blocking executor.
|
<V> CompletionStage<V> |
supply(Supplier<V> supplier,
Object traceId)
Executes the given supplier on the blocking executor.
|
CompletionStage<Void> execute(Runnable runnable, Object traceId)
runnable
- blocking operation that runs some code.traceId
- an identifier that can be used to tell in a trace when an operation moves between threads.<V> CompletionStage<V> supply(Supplier<V> supplier, Object traceId)
V
- supplier type.supplier
- blocking operation that returns a value.traceId
- an identifier that can be used to tell in a trace when an operation moves between threads.Copyright © 2021 JBoss by Red Hat. All rights reserved.