Annotation Interface SqsHandler


Methods that are from classes annotated with SqsListener and are annotated with SqsHandler will be marked as the target of the SQS message listener based on the message payload type.

Each payload type must have exactly one corresponding method.

If no method matches the payload type, a method marked as the default (using isDefault = true) will be invoked. Only one method can be designated as the default.

Author:
José Iêdo
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates whether this method should be used as the default fallback method if no other SqsHandler method matches the payload type.
  • Element Details

    • isDefault

      boolean isDefault
      Indicates whether this method should be used as the default fallback method if no other SqsHandler method matches the payload type.
      Returns:
      true if this is the default method, false otherwise
      Default:
      false