Annotation Interface HandlerMethod


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface HandlerMethod
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Any SqsMessage that has a type used in the annotation would automatically be assigned to the handler annotated.
    Issue types for which retries are to be suppressed.
    Class<? extends Exception>[]
    Exception types for which retries are to be suppressed.
  • Element Details

    • messageType

      String messageType
      Any SqsMessage that has a type used in the annotation would automatically be assigned to the handler annotated.
      Returns:
      Type
      Default:
      ""
    • skipRetryFor

      String[] skipRetryFor
      Issue types for which retries are to be suppressed. This will only for exceptions which are a sub class of ServiceException
      Returns:
      Issue types
      Default:
      {}
    • skipRetryForExceptions

      Class<? extends Exception>[] skipRetryForExceptions
      Exception types for which retries are to be suppressed.
      Returns:
      Array of exception classes
      Default:
      {}