OnOverflow
instead@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,FIELD,PARAMETER}) @Deprecated public @interface OnOverflow
Emitter
:
{ @code @Channel("channel") @OnOverflow(value = OnOverflow.Strategy.BUFFER, bufferSize = 256) Emitteremitter; }
When not used, a OnOverflow.Strategy.BUFFER
strategy is used with a buffer limited to 128 elements.
Modifier and Type | Required Element and Description |
---|---|
OnOverflow.Strategy |
value
Deprecated.
|
Modifier and Type | Optional Element and Description |
---|---|
long |
bufferSize
Deprecated.
|
public abstract OnOverflow.Strategy value
public abstract long bufferSize
OnOverflow.Strategy.BUFFER
is used. If not set and if the OnOverflow.Strategy.BUFFER
strategy is used, the buffer size will be defaulted to the value of the config property
mp.messaging.emitter.default-buffer-size. If set the value must be strictly positive.Copyright © 2018–2021 SmallRye. All rights reserved.