Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.ObjectgetKey​(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[])