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 java.lang.Object
      implements org.springframework.retry.interceptor.MethodArgumentsKeyGenerator

  A `MethodArgumentsKeyGenerator` for JMS
  Author:
    Dave Syer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JmsMethodArgumentsKeyGenerator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.

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

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

- - ### Constructor Detail

    - #### JmsMethodArgumentsKeyGenerator

          public JmsMethodArgumentsKeyGenerator()

  - ### Method Detail

    - #### getKey

          public java.lang.Object getKey(java.lang.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
        `java.lang.IllegalArgumentException` - if the arguments are empty
      See Also:
        `MethodArgumentsKeyGenerator.getKey(Object[])`