{"action":"created","comment":{"url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/comments/79486015","id":79486015,"diff_hunk":"@@ -0,0 +1,28 @@\n+/*\n+ * ******************************************************************************\n+ *   Copyright 2014-2016 Spectra Logic Corporation. All Rights Reserved.\n+ *   Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use\n+ *   this file except in compliance with the License. A copy of the License is located at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *   or in the \"license\" file accompanying this file.\n+ *   This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n+ *   CONDITIONS OF ANY KIND, either express or implied. See the License for the\n+ *   specific language governing permissions and limitations under the License.\n+ * ****************************************************************************\n+ */\n+\n+package com.spectralogic.ds3client.helpers.events;\n+\n+import java.util.concurrent.Executor;\n+import java.util.concurrent.Executors;\n+\n+public class ConcurrentEventRunner implements EventRunner {\n+\n+    private final static Executor EVENTS_EXECUTOR = Executors.newFixedThreadPool(4);","path":"ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/events/ConcurrentEventRunner.java","position":23,"original_position":23,"commit_id":"339dcac07d9936768cd89b4763f1f185bf26dc12","original_commit_id":"339dcac07d9936768cd89b4763f1f185bf26dc12","user":{"login":"RachelTucker","id":14060133,"avatar_url":"https://avatars.githubusercontent.com/u/14060133?v=3","gravatar_id":"","url":"https://api.github.com/users/RachelTucker","html_url":"https://github.com/RachelTucker","followers_url":"https://api.github.com/users/RachelTucker/followers","following_url":"https://api.github.com/users/RachelTucker/following{/other_user}","gists_url":"https://api.github.com/users/RachelTucker/gists{/gist_id}","starred_url":"https://api.github.com/users/RachelTucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RachelTucker/subscriptions","organizations_url":"https://api.github.com/users/RachelTucker/orgs","repos_url":"https://api.github.com/users/RachelTucker/repos","events_url":"https://api.github.com/users/RachelTucker/events{/privacy}","received_events_url":"https://api.github.com/users/RachelTucker/received_events","type":"User","site_admin":false},"body":"Is there any special reasoning for magic number 4?","created_at":"2016-09-19T20:50:38Z","updated_at":"2016-09-19T20:52:19Z","html_url":"https://github.com/SpectraLogic/ds3_java_sdk/pull/349#discussion_r79486015","pull_request_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349","_links":{"self":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/comments/79486015"},"html":{"href":"https://github.com/SpectraLogic/ds3_java_sdk/pull/349#discussion_r79486015"},"pull_request":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349"}}},"pull_request":{"url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349","id":85864079,"html_url":"https://github.com/SpectraLogic/ds3_java_sdk/pull/349","diff_url":"https://github.com/SpectraLogic/ds3_java_sdk/pull/349.diff","patch_url":"https://github.com/SpectraLogic/ds3_java_sdk/pull/349.patch","issue_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues/349","number":349,"state":"open","locked":false,"title":"Events Updates","user":{"login":"rpmoore","id":1901294,"avatar_url":"https://avatars.githubusercontent.com/u/1901294?v=3","gravatar_id":"","url":"https://api.github.com/users/rpmoore","html_url":"https://github.com/rpmoore","followers_url":"https://api.github.com/users/rpmoore/followers","following_url":"https://api.github.com/users/rpmoore/following{/other_user}","gists_url":"https://api.github.com/users/rpmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/rpmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpmoore/subscriptions","organizations_url":"https://api.github.com/users/rpmoore/orgs","repos_url":"https://api.github.com/users/rpmoore/repos","events_url":"https://api.github.com/users/rpmoore/events{/privacy}","received_events_url":"https://api.github.com/users/rpmoore/received_events","type":"User","site_admin":false},"body":"Modified the event handlers so that they emit all their events in an Event class which will asynchronously run the events.  Also added a new event to notify a user when the client has to wait for more chunks.  And made the polling interval between checking for available chunks configurable.","created_at":"2016-09-19T20:32:48Z","updated_at":"2016-09-19T20:52:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13d0fb8fe84405bba327e1dc3eec7644cab90d61","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349/commits","review_comments_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349/comments","review_comment_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues/349/comments","statuses_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/statuses/339dcac07d9936768cd89b4763f1f185bf26dc12","head":{"label":"rpmoore:events","ref":"events","sha":"339dcac07d9936768cd89b4763f1f185bf26dc12","user":{"login":"rpmoore","id":1901294,"avatar_url":"https://avatars.githubusercontent.com/u/1901294?v=3","gravatar_id":"","url":"https://api.github.com/users/rpmoore","html_url":"https://github.com/rpmoore","followers_url":"https://api.github.com/users/rpmoore/followers","following_url":"https://api.github.com/users/rpmoore/following{/other_user}","gists_url":"https://api.github.com/users/rpmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/rpmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpmoore/subscriptions","organizations_url":"https://api.github.com/users/rpmoore/orgs","repos_url":"https://api.github.com/users/rpmoore/repos","events_url":"https://api.github.com/users/rpmoore/events{/privacy}","received_events_url":"https://api.github.com/users/rpmoore/received_events","type":"User","site_admin":false},"repo":{"id":32822919,"name":"ds3_java_sdk","full_name":"rpmoore/ds3_java_sdk","owner":{"login":"rpmoore","id":1901294,"avatar_url":"https://avatars.githubusercontent.com/u/1901294?v=3","gravatar_id":"","url":"https://api.github.com/users/rpmoore","html_url":"https://github.com/rpmoore","followers_url":"https://api.github.com/users/rpmoore/followers","following_url":"https://api.github.com/users/rpmoore/following{/other_user}","gists_url":"https://api.github.com/users/rpmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/rpmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpmoore/subscriptions","organizations_url":"https://api.github.com/users/rpmoore/orgs","repos_url":"https://api.github.com/users/rpmoore/repos","events_url":"https://api.github.com/users/rpmoore/events{/privacy}","received_events_url":"https://api.github.com/users/rpmoore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpmoore/ds3_java_sdk","description":"","fork":true,"url":"https://api.github.com/repos/rpmoore/ds3_java_sdk","forks_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/forks","keys_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/teams","hooks_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/hooks","issue_events_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/events","assignees_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/tags","blobs_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/languages","stargazers_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/stargazers","contributors_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/contributors","subscribers_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/subscribers","subscription_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/subscription","commits_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/merges","archive_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/downloads","issues_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/labels{/name}","releases_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/rpmoore/ds3_java_sdk/deployments","created_at":"2015-03-24T20:20:55Z","updated_at":"2016-01-11T17:15:21Z","pushed_at":"2016-09-19T20:37:57Z","git_url":"git://github.com/rpmoore/ds3_java_sdk.git","ssh_url":"git@github.com:rpmoore/ds3_java_sdk.git","clone_url":"https://github.com/rpmoore/ds3_java_sdk.git","svn_url":"https://github.com/rpmoore/ds3_java_sdk","homepage":null,"size":11115,"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":"SpectraLogic:master","ref":"master","sha":"e64056c43f452231439f52fb38d3a82b95d59ba9","user":{"login":"SpectraLogic","id":7060807,"avatar_url":"https://avatars.githubusercontent.com/u/7060807?v=3","gravatar_id":"","url":"https://api.github.com/users/SpectraLogic","html_url":"https://github.com/SpectraLogic","followers_url":"https://api.github.com/users/SpectraLogic/followers","following_url":"https://api.github.com/users/SpectraLogic/following{/other_user}","gists_url":"https://api.github.com/users/SpectraLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/SpectraLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpectraLogic/subscriptions","organizations_url":"https://api.github.com/users/SpectraLogic/orgs","repos_url":"https://api.github.com/users/SpectraLogic/repos","events_url":"https://api.github.com/users/SpectraLogic/events{/privacy}","received_events_url":"https://api.github.com/users/SpectraLogic/received_events","type":"Organization","site_admin":false},"repo":{"id":18419946,"name":"ds3_java_sdk","full_name":"SpectraLogic/ds3_java_sdk","owner":{"login":"SpectraLogic","id":7060807,"avatar_url":"https://avatars.githubusercontent.com/u/7060807?v=3","gravatar_id":"","url":"https://api.github.com/users/SpectraLogic","html_url":"https://github.com/SpectraLogic","followers_url":"https://api.github.com/users/SpectraLogic/followers","following_url":"https://api.github.com/users/SpectraLogic/following{/other_user}","gists_url":"https://api.github.com/users/SpectraLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/SpectraLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpectraLogic/subscriptions","organizations_url":"https://api.github.com/users/SpectraLogic/orgs","repos_url":"https://api.github.com/users/SpectraLogic/repos","events_url":"https://api.github.com/users/SpectraLogic/events{/privacy}","received_events_url":"https://api.github.com/users/SpectraLogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpectraLogic/ds3_java_sdk","description":"","fork":false,"url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk","forks_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/forks","keys_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/teams","hooks_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/hooks","issue_events_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/events","assignees_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/tags","blobs_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/languages","stargazers_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/stargazers","contributors_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/contributors","subscribers_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/subscribers","subscription_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/subscription","commits_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/merges","archive_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/downloads","issues_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/labels{/name}","releases_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/deployments","created_at":"2014-04-03T22:17:11Z","updated_at":"2016-06-30T23:06:03Z","pushed_at":"2016-09-19T20:37:58Z","git_url":"git://github.com/SpectraLogic/ds3_java_sdk.git","ssh_url":"git@github.com:SpectraLogic/ds3_java_sdk.git","clone_url":"https://github.com/SpectraLogic/ds3_java_sdk.git","svn_url":"https://github.com/SpectraLogic/ds3_java_sdk","homepage":null,"size":15636,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349"},"html":{"href":"https://github.com/SpectraLogic/ds3_java_sdk/pull/349"},"issue":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues/349"},"comments":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/issues/349/comments"},"review_comments":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349/comments"},"review_comment":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/pulls/349/commits"},"statuses":{"href":"https://api.github.com/repos/SpectraLogic/ds3_java_sdk/statuses/339dcac07d9936768cd89b4763f1f185bf26dc12"}}}}
{"actor":{"display_login":"RachelTucker"}}