<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Nomad Labs Code</title>
	<atom:link href="http://code.nomad-labs.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.nomad-labs.com</link>
	<description>srasul&#039;s snippets of code and thought</description>
	<lastBuildDate>Wed, 10 Apr 2013 17:44:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Bob</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-85245</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 10 Apr 2013 17:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-85245</guid>
		<description>good post - I like your style</description>
		<content:encoded><![CDATA[<p>good post &#8211; I like your style</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Brad</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-82935</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Fri, 05 Apr 2013 07:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-82935</guid>
		<description>Yeah, it sucks. The best solution I&#039;ve found is to pass a custom thread factory when constructing the Executor:

Executors.newSched....(..., MyThreadFactory)

In addition to the thread factory being able to set an uncaught exception handler, it has the added benefit of being able to name the threads, which is helpful for debugging.

Google&#039;s Guava is useful for this, where the thread factory can be built in the following way:

new ThreadFactoryBuilder()
    .setNameFormat(&quot;safethread-%d&quot;)
    .setUncaughtExceptionHandler(new MyExHandler())
    .build()));

where MyExHandler implements the Thread.UncaughtExceptionHandler intferface and can log any uncaught exceptions so you know what went wrong.</description>
		<content:encoded><![CDATA[<p>Yeah, it sucks. The best solution I&#8217;ve found is to pass a custom thread factory when constructing the Executor:</p>
<p>Executors.newSched&#8230;.(&#8230;, MyThreadFactory)</p>
<p>In addition to the thread factory being able to set an uncaught exception handler, it has the added benefit of being able to name the threads, which is helpful for debugging.</p>
<p>Google&#8217;s Guava is useful for this, where the thread factory can be built in the following way:</p>
<p>new ThreadFactoryBuilder()<br />
    .setNameFormat(&#8220;safethread-%d&#8221;)<br />
    .setUncaughtExceptionHandler(new MyExHandler())<br />
    .build()));</p>
<p>where MyExHandler implements the Thread.UncaughtExceptionHandler intferface and can log any uncaught exceptions so you know what went wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Arun</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-72758</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Tue, 19 Feb 2013 09:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-72758</guid>
		<description>Nice Post</description>
		<content:encoded><![CDATA[<p>Nice Post</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Mike Argyriou</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-72343</link>
		<dc:creator>Mike Argyriou</dc:creator>
		<pubDate>Thu, 14 Feb 2013 11:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-72343</guid>
		<description>Nice article and ideas but check the hook method ThreadPoolExecutor.afterExecute() ... it can be used for checking if an exception happened!</description>
		<content:encoded><![CDATA[<p>Nice article and ideas but check the hook method ThreadPoolExecutor.afterExecute() &#8230; it can be used for checking if an exception happened!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by bs</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-72079</link>
		<dc:creator>bs</dc:creator>
		<pubDate>Mon, 11 Feb 2013 17:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-72079</guid>
		<description>Wonderful tutorial.....................was struggling to run RMI APPLICATION in eclipse......this tutorial works. .....it&#039;s gr8......superb
Thanx thanx a lot</description>
		<content:encoded><![CDATA[<p>Wonderful tutorial&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;was struggling to run RMI APPLICATION in eclipse&#8230;&#8230;this tutorial works. &#8230;..it&#8217;s gr8&#8230;&#8230;superb<br />
Thanx thanx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Brennen</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-70097</link>
		<dc:creator>Brennen</dc:creator>
		<pubDate>Sun, 27 Jan 2013 04:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-70097</guid>
		<description>Great post, had troubles with this. Hilarious as well as informative.</description>
		<content:encoded><![CDATA[<p>Great post, had troubles with this. Hilarious as well as informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mother F**k the ScheduledExecutorService! by Obe</title>
		<link>http://code.nomad-labs.com/2011/12/09/mother-fk-the-scheduledexecutorservice/comment-page-1/#comment-69473</link>
		<dc:creator>Obe</dc:creator>
		<pubDate>Wed, 23 Jan 2013 21:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=212#comment-69473</guid>
		<description>You should better catch(Throwable th)  instead of catch(Exception e)  since it is also possible that your run method might throw an Error such as memory issues. try it with throw new Error() and you still won&#039;t see any stacktrace....
Error is not an Exception so it won&#039;t be catched.</description>
		<content:encoded><![CDATA[<p>You should better catch(Throwable th)  instead of catch(Exception e)  since it is also possible that your run method might throw an Error such as memory issues. try it with throw new Error() and you still won&#8217;t see any stacktrace&#8230;.<br />
Error is not an Exception so it won&#8217;t be catched.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by kaminofen wasserfuehrend test</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-62984</link>
		<dc:creator>kaminofen wasserfuehrend test</dc:creator>
		<pubDate>Sun, 09 Dec 2012 15:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-62984</guid>
		<description>I have been surfing online more than three hours today, yet 
I never found any attention-grabbing article like yours.
It&#039;s beautiful worth sufficient for me. In my opinion, if all webmasters and bloggers made just right content material as you probably did, the internet will likely be much more useful than ever before.</description>
		<content:encoded><![CDATA[<p>I have been surfing online more than three hours today, yet<br />
I never found any attention-grabbing article like yours.<br />
It&#8217;s beautiful worth sufficient for me. In my opinion, if all webmasters and bloggers made just right content material as you probably did, the internet will likely be much more useful than ever before.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by www.schornsteinkonfigurator24.de</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-62882</link>
		<dc:creator>www.schornsteinkonfigurator24.de</dc:creator>
		<pubDate>Sat, 08 Dec 2012 23:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-62882</guid>
		<description>This is my first time go to see at here and i 
am actually happy to read everthing at single place.</description>
		<content:encoded><![CDATA[<p>This is my first time go to see at here and i<br />
am actually happy to read everthing at single place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An Improved RMI Tutorial with Eclipse by mamuka</title>
		<link>http://code.nomad-labs.com/2010/03/26/an-improved-rmi-tutorial-with-eclipse/comment-page-1/#comment-60518</link>
		<dc:creator>mamuka</dc:creator>
		<pubDate>Sun, 25 Nov 2012 11:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://code.nomad-labs.com/?p=139#comment-60518</guid>
		<description>Multiple markers at this line
	- implements saqib.rasul.Compute.executeTask
	- The method executeTask(Task) of type 
	 ComputeEngine must override a superclass method
	- Return type for the method is missing</description>
		<content:encoded><![CDATA[<p>Multiple markers at this line<br />
	- implements saqib.rasul.Compute.executeTask<br />
	- The method executeTask(Task) of type<br />
	 ComputeEngine must override a superclass method<br />
	- Return type for the method is missing</p>
]]></content:encoded>
	</item>
</channel>
</rss>
