Class JmsNewMethodArgumentsIdentifier<T>

  • All Implemented Interfaces:
    org.springframework.retry.interceptor.NewMethodArgumentsIdentifier

    public class JmsNewMethodArgumentsIdentifier<T>
    extends java.lang.Object
    implements org.springframework.retry.interceptor.NewMethodArgumentsIdentifier
    A NewMethodArgumentsIdentifier for JMS that looks for a message in the arguments and checks its delivery status.
    Author:
    Dave Syer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanisNew​(java.lang.Object[] args)
      If any of the arguments is a message, check the JMS re-delivered flag and return it, otherwise return false to be on the safe side.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmsNewMethodArgumentsIdentifier

        public JmsNewMethodArgumentsIdentifier()
    • Method Detail

      • isNew

        public boolean isNew​(java.lang.Object[] args)
        If any of the arguments is a message, check the JMS re-delivered flag and return it, otherwise return false to be on the safe side.
        Specified by:
        isNew in interface org.springframework.retry.interceptor.NewMethodArgumentsIdentifier
        See Also:
        NewMethodArgumentsIdentifier.isNew(java.lang.Object[])