Annotation Interface OnOverflow
@Retention(RUNTIME)
@Target({METHOD,CONSTRUCTOR,FIELD,PARAMETER})
@Deprecated
public @interface OnOverflow
Deprecated.
Allows configuring the back pressure policy on injected
Emitter:
{
@code
@Channel("channel")
@OnOverflow(value = OnOverflow.Strategy.BUFFER, bufferSize = 256)
Emitter emitter;
}
When not used, a OnOverflow.Strategy.BUFFER strategy is used with a buffer limited to 128 elements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.The back pressure strategy. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
OnOverflow.Strategy valueDeprecated.- Returns:
- the name of the strategy to be used on overflow.
-
bufferSize
long bufferSizeDeprecated.- Returns:
- the size of the buffer when
OnOverflow.Strategy.BUFFERis used. If not set and if theOnOverflow.Strategy.BUFFERstrategy 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.
- Default:
0L
-
OnOverflowinstead