Class JmsMethodInvocationRecoverer<T>
- java.lang.Object
- org.springframework.batch.item.jms.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 Type Field Description protected org.apache.commons.logging.Loglogger
Constructor Summary
Constructors Constructor Description JmsMethodInvocationRecoverer()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
Method Detail
setJmsTemplate
public void setJmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
Setter for jms template.- Parameters:
jmsTemplate- aJmsOperationsinstance
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 successfulnullis returned.- Specified by:
recoverin interfaceorg.springframework.retry.interceptor.MethodInvocationRecoverer<T>- See Also:
MethodInvocationRecoverer.recover(Object[], Throwable)