Skip to content

Commit

Permalink
adding ack method to Message interface (apache#1627)
Browse files Browse the repository at this point in the history
* adding ack method to Message interface

* adding ack to have default implementation

* adding fail method

* correcting grammar

* removing unneccesary colon
  • Loading branch information
jerrypeng authored and sijie committed Apr 22, 2018
1 parent 2d621ae commit 1011979
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,14 @@ public interface Message<T> {
* @return The message data
*/
T getData();
}

/**
* Acknowledge that this message is fully processed
*/
default void ack() {};

/**
* To indicate that this message has failed to be processed
*/
default void fail() {};
}

0 comments on commit 1011979

Please sign in to comment.