@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Blocking
Modifier and Type | Fields and Description |
---|---|
static String |
DEFAULT_WORKER_POOL |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
ordered
Indicates if execution of methods marked with this annotation should be sequenced
and preserve the message ordering, or run concurrently with messages being emitted
in the order that method executions complete.
|
String |
value
Indicates the name of the worker pool to use for execution.
|
public static final String DEFAULT_WORKER_POOL
public abstract String value
smallrye.messaging.worker.{pool-name}.max-concurrency
public abstract boolean ordered
true
, executions of a
blocking method are serialized and messages are processed
in order. The results are emitted in the same order, preserving the relative
message order. Multiple different ordered=true
methods may be active on workers at one time, but each individual
such method will be active once at most.
When ordered is set to false
blocking method
executions are run concurrently on worker threads and may finish in a different
order from the order they were invoked. Results are emitted as soon as the blocking
computation has finished. Message ordering, whether of input messages being observed
by blocking methods running concurrently, or of output messages subsequently emitted,
is not preserved.Copyright © 2018–2021 SmallRye. All rights reserved.