Class SendRetryContextAccessor


  • public final class SendRetryContextAccessor
    extends java.lang.Object
    Type safe accessor for retried message sending.
    Since:
    2.0.6
    Author:
    Gary Russell
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ADDRESS
      Key for the Address we tried to send to.
      static java.lang.String MESSAGE
      Key for the message we tried to send.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Address getAddress​(org.springframework.retry.RetryContext context)
      Retrieve the Address from the context.
      static Message getMessage​(org.springframework.retry.RetryContext context)
      Retrieve the Message from the context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MESSAGE

        public static final java.lang.String MESSAGE
        Key for the message we tried to send.
        See Also:
        Constant Field Values
      • ADDRESS

        public static final java.lang.String ADDRESS
        Key for the Address we tried to send to.
        See Also:
        Constant Field Values
    • Method Detail

      • getMessage

        public static Message getMessage​(org.springframework.retry.RetryContext context)
        Retrieve the Message from the context.
        Parameters:
        context - the context.
        Returns:
        the message.
        See Also:
        MESSAGE
      • getAddress

        public static Address getAddress​(org.springframework.retry.RetryContext context)
        Retrieve the Address from the context.
        Parameters:
        context - the context.
        Returns:
        the address.
        See Also:
        ADDRESS