<?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>Reacties op: ScheduledThreadPoolExecutor horribly broken</title>
	<atom:link href="http://lsd.luminis.eu/scheduledthreadpoolexecutor-horribly-broken/feed/" rel="self" type="application/rss+xml" />
	<link>http://lsd.luminis.eu/scheduledthreadpoolexecutor-horribly-broken/</link>
	<description></description>
	<lastBuildDate>Fri, 20 Jan 2012 08:31:42 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Door: Lukasz Szelag</title>
		<link>http://lsd.luminis.eu/scheduledthreadpoolexecutor-horribly-broken/comment-page-1/#comment-53614</link>
		<dc:creator>Lukasz Szelag</dc:creator>
		<pubDate>Mon, 19 Sep 2011 17:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://lsd.luminis.net/?p=100#comment-53614</guid>
		<description>I solved this problem by keeping a map of submitted futures to corresponding tasks. Then in the overriden afterExecute() method I was able to retrieve both the future and the task (Future future = (Future)r). Using futures was helpful for handling errors (future.get() would rethrow any exceptions). For this to work submitted tasks need to implement Callable.</description>
		<content:encoded><![CDATA[<p>I solved this problem by keeping a map of submitted futures to corresponding tasks. Then in the overriden afterExecute() method I was able to retrieve both the future and the task (Future future = (Future)r). Using futures was helpful for handling errors (future.get() would rethrow any exceptions). For this to work submitted tasks need to implement Callable.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

