Module org.mule.sdk.api
Annotation Interface BackPressure
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@MinMuleVersion("4.5.0")
public @interface BackPressure
Allows the customization of a
Source available and default BackPressureMode.- Since:
- 1.0
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturns the default mode.Themodessupported by the annotated modes.
-
Element Details
-
defaultMode
BackPressureMode defaultModeReturns the default mode. This value MUST be contained insupportedModes()- Returns:
- the default
BackPressureMode
- Default:
- WAIT
-
supportedModes
BackPressureMode[] supportedModesThemodessupported by the annotated modes. Use this option when certain modes do not apply for a given source (e.g.: There's no sense in supporting theBackPressureMode.WAITmode in http:listener.If not provided, only the
BackPressureMode.WAITmode is supported. ThedefaultMode()MUST be contained in this array.- Returns:
- the supported
modes
- Default:
- {WAIT}
-