Package org.springframework.batch.item.jms

# 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

  Constructors
  Constructor
  Description
  `JmsMethodArgumentsKeyGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `getKey(Object[] items)`
  If the message is a `Message` then returns the JMS message ID.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### JmsMethodArgumentsKeyGenerator

    public JmsMethodArgumentsKeyGenerator()

- ## Method Details

  - ### getKey

    public Object getKey(Object[] items)
    If the message is a `Message` then returns the JMS message ID. Otherwise just return the first argument.
    Specified by:
      `getKey` in interface `org.springframework.retry.interceptor.MethodArgumentsKeyGenerator`
    Throws:
      `UnexpectedInputException` - if the JMS id cannot be determined from a JMS Message
      `IllegalArgumentException` - if the arguments are empty
    See Also:
      - `MethodArgumentsKeyGenerator.getKey(Object[])`