Annotation Interface OfDelay


@Documented @Retention(RUNTIME) @Target({METHOD,PARAMETER}) public @interface OfDelay
Specifies the argument value should be passed to MessageProducer.setDeliveryDelay(long).

If applied to multiple parameters, only the first is accepted.

When applied to a parameter on a ByJms interface, its type must be String or Duration. The value of the annotation is ignored.

Can be applied to a method.

When applied to method, Spring property placeholder is supported.

Only applicable to ByJms interfaces.

Since:
1.0
Author:
Lei Yang
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      "PT0S"