Followup to r1068549 - add annotations.
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Feb 2011 09:35:16 +0000 (09:35 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Feb 2011 09:35:16 +0000 (09:35 +0000)
I thought about moving ErrorHandler instance creation outside the retry loop, but actually that is not needed: looping happens only when asyncReply==false and ErrorHandler is created only when asyncReply==true. Thus it is created only once.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1068808 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/tribes/group/RpcChannel.java

index 30a42fb..c40aaba 100644 (file)
@@ -139,10 +139,11 @@ public class RpcChannel implements ChannelListener{
                 final Member fsender = sender;
                 if (excallback!=null && asyncReply) {
                     handler = new ErrorHandler() {
+                        @Override
                         public void handleError(ChannelException x, UniqueId id) {
                             excallback.replyFailed(request, response, fsender, x);
                         }
-                        
+                        @Override
                         public void handleCompletion(UniqueId id) {
                             excallback.replySucceeded(request, response, fsender);
                         }