- All Known Implementing Classes:
@Experimental public interface AcknowledgementSinkDenotes 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
void acknowledge(boolean release, OperationResult result)Informs the receiver that a particular item was processed (successfully or not).
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.