org.springframework.retry.interceptor
Interface NewMethodArgumentsIdentifier


public interface NewMethodArgumentsIdentifier

Strategy interface to distinguish new arguments from ones that have been processed before, e.g. by examining a message flag.

Author:
Dave Syer

Method Summary
 boolean isNew(java.lang.Object[] args)
          Inspect the arguments and determine if they have never been processed before.
 

Method Detail

isNew

boolean isNew(java.lang.Object[] args)
Inspect the arguments and determine if they have never been processed before. The safest choice when the answer is indeterminate is 'false'.

Parameters:
args - the current method arguments.
Returns:
true if the item is known to have never been processed before.


Copyright © 2011 SpringSource. All Rights Reserved.