tag:blogger.com,1999:blog-32637828.post1442485706235035926..comments2023-10-31T16:37:25.528+00:00Comments on fahd.blog: Retrying Operations in JavaFahd Shariffhttp://www.blogger.com/profile/00919911016127601294noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-32637828.post-80354404098680302602016-02-29T09:15:47.101+00:002016-02-29T09:15:47.101+00:00This was quite useful. Thank youThis was quite useful. Thank youvishwamhttps://www.blogger.com/profile/17124081431847304454noreply@blogger.comtag:blogger.com,1999:blog-32637828.post-34622834778343842402015-03-22T07:22:44.946+00:002015-03-22T07:22:44.946+00:00behind-the-scenes:? what is the meaning of this sa...behind-the-scenes:? what is the meaning of this say i have <br />ExecutorService executor = Executors.newFixedThreadPool(10);<br />executor.execute(retriableTask);<br /><br />if the 6 tasks in retry , when i m printing the getTaskCount() it is showing zero.<br />when tasks are in retry , that means thread is occupied , if yes why pool is not showing the task count as 6.<br /><br />How can i control the parallel threads threshold , say i want to process only 10 threads including retry also.<br /><br />how can i see count of processing in retry<br /> Thread.sleep(timeToWait);Anonymoushttps://www.blogger.com/profile/03039317047510102358noreply@blogger.comtag:blogger.com,1999:blog-32637828.post-18484622475240212262015-01-29T14:08:00.884+00:002015-01-29T14:08:00.884+00:00Isn't approach 1 the cleanest and shortest?Isn't approach 1 the cleanest and shortest?Anonymoushttps://www.blogger.com/profile/00310928175527137779noreply@blogger.comtag:blogger.com,1999:blog-32637828.post-21844309595320666592014-06-30T10:16:50.780+01:002014-06-30T10:16:50.780+01:00Hi Fahd,
I am currently looking at some code in on...Hi Fahd,<br />I am currently looking at some code in one of our products and we find that part of is is derived from some code you<br />posted on your blog : http://fahdshariff.blogspot.co.uk/2009/08/retrying-operations-in-java.html<br />I need to know what terms your source code is licensed under, if you authored 100% of the code<br />on this blog or if someone else authored it .<br />Is the code licensed under a standard open source license? (which one?)<br />If not , do you give us permission to perform, distribute, and creative derivative works.<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/02228307878865911967noreply@blogger.comtag:blogger.com,1999:blog-32637828.post-19498690484779116012014-05-24T19:51:16.109+01:002014-05-24T19:51:16.109+01:00In the last sample, it seems should not be while (...In the last sample, it seems should not be while (true), <br />It should be:<br />while(numberOfTriesLeft)<br /><br />right?Anonymoushttps://www.blogger.com/profile/06517898610176515844noreply@blogger.comtag:blogger.com,1999:blog-32637828.post-32146219249495346492014-04-08T20:52:00.730+01:002014-04-08T20:52:00.730+01:00This is great stuff. I would even suggest that Ret...This is great stuff. I would even suggest that RetriableTask could accept a RetryStrategy instance so as control how the/when the retry is handled, e.g., different tasks might need different strategies. For example a strategy might only retry on a specific set of possible exceptions and fail-fast on others. kosmjon2https://www.blogger.com/profile/05453004793057766083noreply@blogger.com