How to get item from RetryListener
1. Could anybody please tell me how to get current processing item in the RetryListener? Actually, RetryListener will call the interface by passing RetryContext, however, it is not easy to get the current processing item from it.
2. Also, I noticed that Spring Batch does not have an interface like RetryPolicy.handleRetryExhausted, it will give a chance to RetryListener when RetryTemplate is trying to give up an item that has reached Retry Limit number. I think it is very useful since people does not want to skip a item without recording it. Could we add this interface in RetryListener?