Annotation Interface OfDelay


@Documented @Retention(RUNTIME) @Target({METHOD,PARAMETER}) public @interface OfDelay
When applied to a parameter of a ByJms interface, it specified the argument should be used for MessageProducer.setDeliveryDelay(long).

If applied to multiple parameters, only the first applies.

When applied to a parameter, the parameter type must be Duration. The value of the annotation is ignored.

Can be applied to a method as well.

When applied to method, Spring property placeholder is supported.

Since:
1.0
Author:
Lei Yang
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      "PT0S"