AspectMap Part 3 – A Retry Aspect (Or Inspecting the Source Attribute)

added by csurfleet
6/12/2012 2:45:10 AM

4 Kicks, 152 Views

This is part 3 of my series of posts on using AspectMap. In this post we’ll create a retry aspect which will allow you to retry the functionality of a method a specified number of times for a certain exception. For instance you could set a method up to try some SQL operation up to 4 times if it receives timeout exceptions. This will introduce you to the technique for inspecting the attribute that kicked off your handler.


2 comments

timbolt8
6/12/2012 8:42:19 AM
Short and to the point articles, I love it!

timbolt8
6/12/2012 8:42:19 AM
Short and to the point articles, I love it!