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 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[])