{"action":"created","issue":{"url":"https://api.github.com/repos/rholder/guava-retrying/issues/34","labels_url":"https://api.github.com/repos/rholder/guava-retrying/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/rholder/guava-retrying/issues/34/comments","events_url":"https://api.github.com/repos/rholder/guava-retrying/issues/34/events","html_url":"https://github.com/rholder/guava-retrying/issues/34","id":65576206,"number":34,"title":"Non-generic Retryer?","user":{"login":"jalaziz","id":247849,"avatar_url":"https://avatars.githubusercontent.com/u/247849?v=3","gravatar_id":"","url":"https://api.github.com/users/jalaziz","html_url":"https://github.com/jalaziz","followers_url":"https://api.github.com/users/jalaziz/followers","following_url":"https://api.github.com/users/jalaziz/following{/other_user}","gists_url":"https://api.github.com/users/jalaziz/gists{/gist_id}","starred_url":"https://api.github.com/users/jalaziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalaziz/subscriptions","organizations_url":"https://api.github.com/users/jalaziz/orgs","repos_url":"https://api.github.com/users/jalaziz/repos","events_url":"https://api.github.com/users/jalaziz/events{/privacy}","received_events_url":"https://api.github.com/users/jalaziz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-01T00:41:50Z","updated_at":"2015-09-09T09:32:43Z","closed_at":null,"body":"I wanted to start a discussion before submitting a PR. I think it would pretty useful to have a non-generic Retryer that would allow you to use the Retryer with any generic callable.\r\n\r\nA quick look through the code seems to suggest the only reason for the generics at the class-level is to retry on a specific return value. However, if this is not needed, but the same retry logic (on exception) is needed for multiple methods, each with different return types, then a non-generic Retryer seems to be a cleaner approach.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/rholder/guava-retrying/issues/comments/138854421","html_url":"https://github.com/rholder/guava-retrying/issues/34#issuecomment-138854421","issue_url":"https://api.github.com/repos/rholder/guava-retrying/issues/34","id":138854421,"user":{"login":"JensRantil","id":730342,"avatar_url":"https://avatars.githubusercontent.com/u/730342?v=3","gravatar_id":"","url":"https://api.github.com/users/JensRantil","html_url":"https://github.com/JensRantil","followers_url":"https://api.github.com/users/JensRantil/followers","following_url":"https://api.github.com/users/JensRantil/following{/other_user}","gists_url":"https://api.github.com/users/JensRantil/gists{/gist_id}","starred_url":"https://api.github.com/users/JensRantil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JensRantil/subscriptions","organizations_url":"https://api.github.com/users/JensRantil/orgs","repos_url":"https://api.github.com/users/JensRantil/repos","events_url":"https://api.github.com/users/JensRantil/events{/privacy}","received_events_url":"https://api.github.com/users/JensRantil/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T09:32:43Z","updated_at":"2015-09-09T09:32:43Z","body":"@jalaziz I see. Did you try to use a `Callable<Object>` and do type checking of the result? Would that work?"}}