Annotation Interface Mandatory


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD,PARAMETER}) @Bindable @Inherited public @interface Mandatory
Used to specify how the server should react if the message cannot be routed to a queue.

If this flag is true, the server will return an unroutable message with a Return method. If this flag is false, the server silently drops the message.

Can be applied to a parameter for a dynamic value per execution.

Since:
4.1.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      Whether the "mandatory" flag should be set or not.
      Default:
      "true"