I would like to create a retry mechanism with Guice AOP. I wanted to know
if it's legal to call proceed() multiple time in the same
invoke(MethodInvocation invocation). Otherwise, is there a better way to
implement a retry mechanism on many different method in my application.
I would like to do something like:
public Object invoke(MethodInvocation invocation) throws Throwable {
boolean success = false;
while(!success){
try{
invocation.proceed();
success = true;
catch(MyCustomException e){
success = false;
}
}
}
Thank you
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-guice/-/2wf2SoWqvzAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.