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.MethodArgumentsKeyGeneratorAMethodArgumentsKeyGeneratorfor 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.ObjectgetKey(java.lang.Object[] items)If the message is aMessagethen returns the JMS message ID.
Method Detail
getKey
public java.lang.Object getKey(java.lang.Object[] items)
If the message is aMessagethen returns the JMS message ID. Otherwise just return the first argument.- Specified by:
getKeyin 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[])