{"action":"created","comment":{"url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/comments/25997662","id":25997662,"diff_hunk":"@@ -0,0 +1,60 @@\n+/*\n+ * Copyright 2015 the original author or authors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.springframework.integration.kafka.listener;\n+\n+\n+import kafka.serializer.Decoder;\n+\n+import org.springframework.integration.kafka.core.KafkaMessage;\n+import org.springframework.integration.kafka.core.KafkaMessageMetadata;\n+import org.springframework.integration.kafka.util.MessageUtils;\n+\n+/**\n+ * Base {@link AcknowledgingMessageListener} implementation that decodes the key and the payload using the supplied {@link Decoder}s.\n+ *\n+ * Users of this class must extend it and implement {@code doOnMessage} and must supply {@link Decoder}\n+ * implementations for both the key and the payload.\n+ *\n+ * @author Marius Bogoevici","path":"src/main/java/org/springframework/integration/kafka/listener/AbstractDecodingAcknowledgingMessageListener.java","position":32,"original_position":32,"commit_id":"c1aa801e546e64e93203f497309e5ae56ff503c1","original_commit_id":"c1aa801e546e64e93203f497309e5ae56ff503c1","user":{"login":"artembilan","id":1071590,"avatar_url":"https://avatars.githubusercontent.com/u/1071590?v=3","gravatar_id":"","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"body":"`@Since 1.0.1` ?","created_at":"2015-03-07T17:26:53Z","updated_at":"2015-03-07T17:26:53Z","html_url":"https://github.com/spring-projects/spring-integration-kafka/pull/21#discussion_r25997662","pull_request_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/comments/25997662"},"html":{"href":"https://github.com/spring-projects/spring-integration-kafka/pull/21#discussion_r25997662"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21","id":30523121,"html_url":"https://github.com/spring-projects/spring-integration-kafka/pull/21","diff_url":"https://github.com/spring-projects/spring-integration-kafka/pull/21.diff","patch_url":"https://github.com/spring-projects/spring-integration-kafka/pull/21.patch","issue_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues/21","number":21,"state":"open","locked":false,"title":"INTEXT-143 Add support for manual acknowledgment of messages","user":{"login":"mbogoevici","id":159684,"avatar_url":"https://avatars.githubusercontent.com/u/159684?v=3","gravatar_id":"","url":"https://api.github.com/users/mbogoevici","html_url":"https://github.com/mbogoevici","followers_url":"https://api.github.com/users/mbogoevici/followers","following_url":"https://api.github.com/users/mbogoevici/following{/other_user}","gists_url":"https://api.github.com/users/mbogoevici/gists{/gist_id}","starred_url":"https://api.github.com/users/mbogoevici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbogoevici/subscriptions","organizations_url":"https://api.github.com/users/mbogoevici/orgs","repos_url":"https://api.github.com/users/mbogoevici/repos","events_url":"https://api.github.com/users/mbogoevici/events{/privacy}","received_events_url":"https://api.github.com/users/mbogoevici/received_events","type":"User","site_admin":false},"body":"- Introduce an Acknowledgment object that message processors can invoke;\r\n- Introduce an AcknowedgingMessageListener variation of the MessageListener that receives an Acknowledgment reference for the processed message;\r\n- Add 'autoCommitOffset' settings to the KafkaMessageListenerContainer and KafkaMessageDrivenChannelAdapter, and the ability to inject a MessageListener or an AcknowledgingMessageListener in either (the allowed type depending on the offset management strategy)\r\n- Prepopulate a message header for SI messages created by the KafkaMessageDrivenChannelAdapter if autoCommit is enabled or disabled;\r\n- OffsetManager only sets values that are higher than the ones already set in a session (barring reset) - this is to prevent asynchrous acks to mistakenly revert checkpoints","created_at":"2015-03-05T01:43:12Z","updated_at":"2015-03-07T17:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"706e735ecd0d328c3e75fb920d73e6a6e883c585","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21/commits","review_comments_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21/comments","review_comment_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues/21/comments","statuses_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/statuses/c1aa801e546e64e93203f497309e5ae56ff503c1","head":{"label":"mbogoevici:INTEXT-143","ref":"INTEXT-143","sha":"c1aa801e546e64e93203f497309e5ae56ff503c1","user":{"login":"mbogoevici","id":159684,"avatar_url":"https://avatars.githubusercontent.com/u/159684?v=3","gravatar_id":"","url":"https://api.github.com/users/mbogoevici","html_url":"https://github.com/mbogoevici","followers_url":"https://api.github.com/users/mbogoevici/followers","following_url":"https://api.github.com/users/mbogoevici/following{/other_user}","gists_url":"https://api.github.com/users/mbogoevici/gists{/gist_id}","starred_url":"https://api.github.com/users/mbogoevici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbogoevici/subscriptions","organizations_url":"https://api.github.com/users/mbogoevici/orgs","repos_url":"https://api.github.com/users/mbogoevici/repos","events_url":"https://api.github.com/users/mbogoevici/events{/privacy}","received_events_url":"https://api.github.com/users/mbogoevici/received_events","type":"User","site_admin":false},"repo":{"id":28195714,"name":"spring-integration-kafka","full_name":"mbogoevici/spring-integration-kafka","owner":{"login":"mbogoevici","id":159684,"avatar_url":"https://avatars.githubusercontent.com/u/159684?v=3","gravatar_id":"","url":"https://api.github.com/users/mbogoevici","html_url":"https://github.com/mbogoevici","followers_url":"https://api.github.com/users/mbogoevici/followers","following_url":"https://api.github.com/users/mbogoevici/following{/other_user}","gists_url":"https://api.github.com/users/mbogoevici/gists{/gist_id}","starred_url":"https://api.github.com/users/mbogoevici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbogoevici/subscriptions","organizations_url":"https://api.github.com/users/mbogoevici/orgs","repos_url":"https://api.github.com/users/mbogoevici/repos","events_url":"https://api.github.com/users/mbogoevici/events{/privacy}","received_events_url":"https://api.github.com/users/mbogoevici/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbogoevici/spring-integration-kafka","description":"","fork":true,"url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka","forks_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/forks","keys_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/teams","hooks_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/hooks","issue_events_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/issues/events{/number}","events_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/events","assignees_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/assignees{/user}","branches_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/branches{/branch}","tags_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/tags","blobs_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/languages","stargazers_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/stargazers","contributors_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/contributors","subscribers_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/subscribers","subscription_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/subscription","commits_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/contents/{+path}","compare_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/merges","archive_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/downloads","issues_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/issues{/number}","pulls_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/labels{/name}","releases_url":"https://api.github.com/repos/mbogoevici/spring-integration-kafka/releases{/id}","created_at":"2014-12-18T18:19:08Z","updated_at":"2015-02-05T22:33:43Z","pushed_at":"2015-03-05T01:43:04Z","git_url":"git://github.com/mbogoevici/spring-integration-kafka.git","ssh_url":"git@github.com:mbogoevici/spring-integration-kafka.git","clone_url":"https://github.com/mbogoevici/spring-integration-kafka.git","svn_url":"https://github.com/mbogoevici/spring-integration-kafka","homepage":null,"size":897,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-projects:master","ref":"master","sha":"99ca576f9985f0f5d7ec723f661030ec067006a9","user":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":26547822,"name":"spring-integration-kafka","full_name":"spring-projects/spring-integration-kafka","owner":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-projects/spring-integration-kafka","description":"","fork":false,"url":"https://api.github.com/repos/spring-projects/spring-integration-kafka","forks_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/forks","keys_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/teams","hooks_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/hooks","issue_events_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues/events{/number}","events_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/events","assignees_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/assignees{/user}","branches_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/branches{/branch}","tags_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/tags","blobs_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/languages","stargazers_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/stargazers","contributors_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/contributors","subscribers_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/subscribers","subscription_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/subscription","commits_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/contents/{+path}","compare_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/merges","archive_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/downloads","issues_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues{/number}","pulls_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/labels{/name}","releases_url":"https://api.github.com/repos/spring-projects/spring-integration-kafka/releases{/id}","created_at":"2014-11-12T17:35:29Z","updated_at":"2015-03-03T09:18:12Z","pushed_at":"2015-02-09T15:21:28Z","git_url":"git://github.com/spring-projects/spring-integration-kafka.git","ssh_url":"git@github.com:spring-projects/spring-integration-kafka.git","clone_url":"https://github.com/spring-projects/spring-integration-kafka.git","svn_url":"https://github.com/spring-projects/spring-integration-kafka","homepage":null,"size":1111,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21"},"html":{"href":"https://github.com/spring-projects/spring-integration-kafka/pull/21"},"issue":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues/21"},"comments":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/spring-projects/spring-integration-kafka/statuses/c1aa801e546e64e93203f497309e5ae56ff503c1"}}}}