public class JmsMethodArgumentsKeyGenerator extends Object implements org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
MethodArgumentsKeyGenerator for JMS| Constructor and Description |
|---|
JmsMethodArgumentsKeyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey(Object[] items)
If the message is a
Message then returns the JMS message ID. |
public Object getKey(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 MessageIllegalArgumentException - if the arguments are emptyMethodArgumentsKeyGenerator.getKey(Object[])Copyright © 2021 Pivotal. All rights reserved.