Interface AcknowledgementSink


  • @Experimental
    public interface AcknowledgementSink
    Denotes an object capable of receiving an acknowledge that an item was processed. It is placed in this module and package, because it is a universal concept, with a scope similar to ResultHandler.
    • Method Detail

      • acknowledge

        void acknowledge​(boolean release,
                         OperationResult result)
        Informs the receiver that a particular item was processed (successfully or not).
        Parameters:
        release - If true, the item can be forgotten. If false, we want to receive that item again, presumably to be reprocessed later.
        result - Operation result in context of which the acknowledgement should take place. It is useful if the acknowledgement itself can take considerable time, e.g. when it involves a communication with an external party.