Class JmsMethodArgumentsKeyGenerator
- java.lang.Object
- org.springframework.batch.item.jms.JmsMethodArgumentsKeyGenerator
- All Implemented Interfaces:
org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
public class JmsMethodArgumentsKeyGenerator extends java.lang.Object implements org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
AMethodArgumentsKeyGenerator
for JMS- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description JmsMethodArgumentsKeyGenerator()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getKey(java.lang.Object[] items)
If the message is aMessage
then returns the JMS message ID.
Method Detail
getKey
public java.lang.Object getKey(java.lang.Object[] items)
If the message is aMessage
then returns the JMS message ID. Otherwise just return the first argument.- Specified by:
getKey
in interfaceorg.springframework.retry.interceptor.MethodArgumentsKeyGenerator
- Throws:
UnexpectedInputException
- if the JMS id cannot be determined from a JMS Messagejava.lang.IllegalArgumentException
- if the arguments are empty- See Also:
MethodArgumentsKeyGenerator.getKey(Object[])