Interface ItemProcessListener<T,​S>

    • Method Detail

      • afterProcess

        void afterProcess​(T item,
                          @Nullable
                          S result)
        Called after ItemProcessor.process(Object) returns. If the processor returns null, this method will still be called, with a {code null} result, allowing for notification of 'filtered' items.
        Parameters:
        item - to be processed
        result - of processing
      • onProcessError

        void onProcessError​(T item,
                            java.lang.Exception e)
        Called if an exception was thrown from ItemProcessor.process(Object).
        Parameters:
        item - attempted to be processed
        e - - exception thrown during processing.