Class JmsMethodArgumentsKeyGenerator
java.lang.Object
org.springframework.batch.item.jms.JmsMethodArgumentsKeyGenerator
- All Implemented Interfaces:
org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
public class JmsMethodArgumentsKeyGenerator
extends Object
implements org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
A
MethodArgumentsKeyGenerator
for JMS- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JmsMethodArgumentsKeyGenerator
public JmsMethodArgumentsKeyGenerator()
-
-
Method Details
-
getKey
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 MessageIllegalArgumentException
- if the arguments are empty- See Also:
-
MethodArgumentsKeyGenerator.getKey(Object[])
-