{"action":"created","comment":{"url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments/71651119","id":71651119,"diff_hunk":"@@ -0,0 +1,34 @@\n+/*\n+ * Copyright Terracotta, Inc.\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.terracotta.state;\n+\n+import com.tc.classloader.CommonComponent;\n+\n+import java.util.Map;\n+\n+/**\n+ * Repository to hold state of entities.\n+ * This class is not thread safe, since it's always expected\n+ * that state changes only during lifecycle of entity under maintenance.\n+ */\n+@CommonComponent\n+public interface EntityStateRepository {\n+\n+  < K, V> Map<K, V> getOrCreateState(String name, Class<K> kClass, Class<V> vClass);","path":"entity-state-service/src/main/java/org/terracotta/state/EntityStateRepository.java","position":31,"original_position":31,"commit_id":"1f265053d857ffee9456be46b19be92ac4e6db2a","original_commit_id":"1f265053d857ffee9456be46b19be92ac4e6db2a","user":{"login":"albinsuresh","id":1647963,"avatar_url":"https://avatars.githubusercontent.com/u/1647963?v=3","gravatar_id":"","url":"https://api.github.com/users/albinsuresh","html_url":"https://github.com/albinsuresh","followers_url":"https://api.github.com/users/albinsuresh/followers","following_url":"https://api.github.com/users/albinsuresh/following{/other_user}","gists_url":"https://api.github.com/users/albinsuresh/gists{/gist_id}","starred_url":"https://api.github.com/users/albinsuresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albinsuresh/subscriptions","organizations_url":"https://api.github.com/users/albinsuresh/orgs","repos_url":"https://api.github.com/users/albinsuresh/repos","events_url":"https://api.github.com/users/albinsuresh/events{/privacy}","received_events_url":"https://api.github.com/users/albinsuresh/received_events","type":"User","site_admin":false},"body":"Formatting of the generic parameters: < K, V> : <K, V>","created_at":"2016-07-21T06:04:13Z","updated_at":"2016-07-21T06:04:13Z","html_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/120#discussion_r71651119","pull_request_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments/71651119"},"html":{"href":"https://github.com/Terracotta-OSS/terracotta-platform/pull/120#discussion_r71651119"},"pull_request":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120","id":78148520,"html_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/120","diff_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/120.diff","patch_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/120.patch","issue_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/120","number":120,"state":"open","locked":false,"title":"Issue #121 state service","user":{"login":"AbfrmBlr","id":4498935,"avatar_url":"https://avatars.githubusercontent.com/u/4498935?v=3","gravatar_id":"","url":"https://api.github.com/users/AbfrmBlr","html_url":"https://github.com/AbfrmBlr","followers_url":"https://api.github.com/users/AbfrmBlr/followers","following_url":"https://api.github.com/users/AbfrmBlr/following{/other_user}","gists_url":"https://api.github.com/users/AbfrmBlr/gists{/gist_id}","starred_url":"https://api.github.com/users/AbfrmBlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbfrmBlr/subscriptions","organizations_url":"https://api.github.com/users/AbfrmBlr/orgs","repos_url":"https://api.github.com/users/AbfrmBlr/repos","events_url":"https://api.github.com/users/AbfrmBlr/events{/privacy}","received_events_url":"https://api.github.com/users/AbfrmBlr/received_events","type":"User","site_admin":false},"body":"Service added which will hold state for entity and enable them to share state when being promoted to active from passive","created_at":"2016-07-20T13:39:54Z","updated_at":"2016-07-21T06:04:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77dc6dafc9c9034b8bf124417e23525e438ca2df","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120/commits","review_comments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120/comments","review_comment_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/120/comments","statuses_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/statuses/1f265053d857ffee9456be46b19be92ac4e6db2a","head":{"label":"AbfrmBlr:issue-state-service","ref":"issue-state-service","sha":"1f265053d857ffee9456be46b19be92ac4e6db2a","user":{"login":"AbfrmBlr","id":4498935,"avatar_url":"https://avatars.githubusercontent.com/u/4498935?v=3","gravatar_id":"","url":"https://api.github.com/users/AbfrmBlr","html_url":"https://github.com/AbfrmBlr","followers_url":"https://api.github.com/users/AbfrmBlr/followers","following_url":"https://api.github.com/users/AbfrmBlr/following{/other_user}","gists_url":"https://api.github.com/users/AbfrmBlr/gists{/gist_id}","starred_url":"https://api.github.com/users/AbfrmBlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbfrmBlr/subscriptions","organizations_url":"https://api.github.com/users/AbfrmBlr/orgs","repos_url":"https://api.github.com/users/AbfrmBlr/repos","events_url":"https://api.github.com/users/AbfrmBlr/events{/privacy}","received_events_url":"https://api.github.com/users/AbfrmBlr/received_events","type":"User","site_admin":false},"repo":{"id":44313358,"name":"terracotta-platform","full_name":"AbfrmBlr/terracotta-platform","owner":{"login":"AbfrmBlr","id":4498935,"avatar_url":"https://avatars.githubusercontent.com/u/4498935?v=3","gravatar_id":"","url":"https://api.github.com/users/AbfrmBlr","html_url":"https://github.com/AbfrmBlr","followers_url":"https://api.github.com/users/AbfrmBlr/followers","following_url":"https://api.github.com/users/AbfrmBlr/following{/other_user}","gists_url":"https://api.github.com/users/AbfrmBlr/gists{/gist_id}","starred_url":"https://api.github.com/users/AbfrmBlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbfrmBlr/subscriptions","organizations_url":"https://api.github.com/users/AbfrmBlr/orgs","repos_url":"https://api.github.com/users/AbfrmBlr/repos","events_url":"https://api.github.com/users/AbfrmBlr/events{/privacy}","received_events_url":"https://api.github.com/users/AbfrmBlr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AbfrmBlr/terracotta-platform","description":"","fork":true,"url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform","forks_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/forks","keys_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/teams","hooks_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/hooks","issue_events_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/issues/events{/number}","events_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/events","assignees_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/assignees{/user}","branches_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/branches{/branch}","tags_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/tags","blobs_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/languages","stargazers_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/stargazers","contributors_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/contributors","subscribers_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/subscribers","subscription_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/subscription","commits_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/contents/{+path}","compare_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/merges","archive_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/downloads","issues_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/issues{/number}","pulls_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/labels{/name}","releases_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/releases{/id}","deployments_url":"https://api.github.com/repos/AbfrmBlr/terracotta-platform/deployments","created_at":"2015-10-15T11:35:55Z","updated_at":"2016-07-20T10:34:26Z","pushed_at":"2016-07-20T14:05:13Z","git_url":"git://github.com/AbfrmBlr/terracotta-platform.git","ssh_url":"git@github.com:AbfrmBlr/terracotta-platform.git","clone_url":"https://github.com/AbfrmBlr/terracotta-platform.git","svn_url":"https://github.com/AbfrmBlr/terracotta-platform","homepage":null,"size":1031,"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":"Terracotta-OSS:master","ref":"master","sha":"f14fc6915b5e0f25e60819924d4c9616c68c9fd8","user":{"login":"Terracotta-OSS","id":4680389,"avatar_url":"https://avatars.githubusercontent.com/u/4680389?v=3","gravatar_id":"","url":"https://api.github.com/users/Terracotta-OSS","html_url":"https://github.com/Terracotta-OSS","followers_url":"https://api.github.com/users/Terracotta-OSS/followers","following_url":"https://api.github.com/users/Terracotta-OSS/following{/other_user}","gists_url":"https://api.github.com/users/Terracotta-OSS/gists{/gist_id}","starred_url":"https://api.github.com/users/Terracotta-OSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terracotta-OSS/subscriptions","organizations_url":"https://api.github.com/users/Terracotta-OSS/orgs","repos_url":"https://api.github.com/users/Terracotta-OSS/repos","events_url":"https://api.github.com/users/Terracotta-OSS/events{/privacy}","received_events_url":"https://api.github.com/users/Terracotta-OSS/received_events","type":"Organization","site_admin":false},"repo":{"id":44253742,"name":"terracotta-platform","full_name":"Terracotta-OSS/terracotta-platform","owner":{"login":"Terracotta-OSS","id":4680389,"avatar_url":"https://avatars.githubusercontent.com/u/4680389?v=3","gravatar_id":"","url":"https://api.github.com/users/Terracotta-OSS","html_url":"https://github.com/Terracotta-OSS","followers_url":"https://api.github.com/users/Terracotta-OSS/followers","following_url":"https://api.github.com/users/Terracotta-OSS/following{/other_user}","gists_url":"https://api.github.com/users/Terracotta-OSS/gists{/gist_id}","starred_url":"https://api.github.com/users/Terracotta-OSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terracotta-OSS/subscriptions","organizations_url":"https://api.github.com/users/Terracotta-OSS/orgs","repos_url":"https://api.github.com/users/Terracotta-OSS/repos","events_url":"https://api.github.com/users/Terracotta-OSS/events{/privacy}","received_events_url":"https://api.github.com/users/Terracotta-OSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Terracotta-OSS/terracotta-platform","description":"","fork":false,"url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform","forks_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/forks","keys_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/teams","hooks_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/hooks","issue_events_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/events{/number}","events_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/events","assignees_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/assignees{/user}","branches_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/branches{/branch}","tags_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/tags","blobs_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/languages","stargazers_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/stargazers","contributors_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/contributors","subscribers_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/subscribers","subscription_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/subscription","commits_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/contents/{+path}","compare_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/merges","archive_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/downloads","issues_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues{/number}","pulls_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/labels{/name}","releases_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/releases{/id}","deployments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/deployments","created_at":"2015-10-14T14:37:13Z","updated_at":"2016-06-21T22:37:20Z","pushed_at":"2016-07-20T14:05:14Z","git_url":"git://github.com/Terracotta-OSS/terracotta-platform.git","ssh_url":"git@github.com:Terracotta-OSS/terracotta-platform.git","clone_url":"https://github.com/Terracotta-OSS/terracotta-platform.git","svn_url":"https://github.com/Terracotta-OSS/terracotta-platform","homepage":"http://terracotta.org","size":1051,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":8,"forks":14,"open_issues":8,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120"},"html":{"href":"https://github.com/Terracotta-OSS/terracotta-platform/pull/120"},"issue":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/120"},"comments":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/statuses/1f265053d857ffee9456be46b19be92ac4e6db2a"}}}}
{"actor":{"display_login":"albinsuresh"}}