public class JmsMethodArgumentsKeyGenerator
extends java.lang.Object
implements org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
MethodArgumentsKeyGenerator for JMS| Constructor and Description |
|---|
JmsMethodArgumentsKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getKey(java.lang.Object[] items)
If the message is a
Message then returns the JMS message ID. |
public java.lang.Object getKey(java.lang.Object[] items)
Message then returns the JMS message ID.
Otherwise just return the first argument.getKey in interface org.springframework.retry.interceptor.MethodArgumentsKeyGeneratorUnexpectedInputException - if the JMS id cannot be determined from
a JMS Messagejava.lang.IllegalArgumentException - if the arguments are emptyMethodArgumentsKeyGenerator.getKey(Object[])