Class JmsMethodInvocationRecoverer<T>

  • All Implemented Interfaces:
    org.springframework.retry.interceptor.MethodInvocationRecoverer<T>

    public class JmsMethodInvocationRecoverer<T>
    extends java.lang.Object
    implements org.springframework.retry.interceptor.MethodInvocationRecoverer<T>
    Author:
    Dave Syer, Mahmoud Ben Hassine
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      protected org.apache.commons.logging.Loglogger 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      Trecover​(java.lang.Object[] items, java.lang.Throwable cause)
      Send one message per item in the arguments list using the default destination of the jms template.
      voidsetJmsTemplate​(org.springframework.jms.core.JmsOperations jmsTemplate)
      Setter for jms template.
      • Methods inherited from class java.lang.Object

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

      • logger

        protected org.apache.commons.logging.Log logger
    • Constructor Detail

      • JmsMethodInvocationRecoverer

        public JmsMethodInvocationRecoverer()
    • Method Detail

      • setJmsTemplate

        public void setJmsTemplate​(org.springframework.jms.core.JmsOperations jmsTemplate)
        Setter for jms template.
        Parameters:
        jmsTemplate - a JmsOperations instance
      • recover

        @Nullable
        public T recover​(java.lang.Object[] items,
                         java.lang.Throwable cause)
        Send one message per item in the arguments list using the default destination of the jms template. If the recovery is successful null is returned.
        Specified by:
        recover in interface org.springframework.retry.interceptor.MethodInvocationRecoverer<T>
        See Also:
        MethodInvocationRecoverer.recover(Object[], Throwable)