org.springframework.batch.retry.interceptor
Interface NewMethodArgumentsIdentifier
- All Known Implementing Classes:
- JmsNewMethodArgumentsIdentifier
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(Object[] args)
Inspect the arguments and determine if they have never been processed
before. |
isNew
boolean isNew(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 © 2009 SpringSource. All Rights Reserved.