@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,FIELD,PARAMETER}) public @interface OnOverflow
Emitter
:
{ @code @Channel("channel") @OnOverflow(value = OnOverflow.Strategy.BUFFER, bufferSize = 256) Emitter<String> emitter; }
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 |
Modifier and Type | Optional Element and Description |
---|---|
long |
bufferSize |
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.Copyright © 2018–2021 SmallRye. All rights reserved.