[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...

Ron Sigal ron_sigal at yahoo.com
Sat Jan 20 20:14:50 EST 2007


  User: rsigal  
  Date: 07/01/20 20:14:50

  Modified:    src/main/org/jboss/remoting  Tag: remoting_2_x
                        MicroRemoteClientInvoker.java
  Log:
  JBREM-657: Added parameter "local" to terminateLease() so that, optionally, it can execute without trying to contact server.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.5   +3 -3      JBossRemoting/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MicroRemoteClientInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java,v
  retrieving revision 1.7.2.4
  retrieving revision 1.7.2.5
  diff -u -b -r1.7.2.4 -r1.7.2.5
  --- MicroRemoteClientInvoker.java	20 Jan 2007 08:48:59 -0000	1.7.2.4
  +++ MicroRemoteClientInvoker.java	21 Jan 2007 01:14:50 -0000	1.7.2.5
  @@ -27,7 +27,7 @@
    *
    * @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
    * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
  - * @version $Revision: 1.7.2.4 $
  + * @version $Revision: 1.7.2.5 $
    */
   public abstract class MicroRemoteClientInvoker extends AbstractInvoker implements ClientInvoker
   {
  @@ -319,16 +319,16 @@
         return this.unmarshaller;
      }
   
  -   public void terminateLease(String sessionId)
  +   public void terminateLease(String sessionId, boolean local)
      {
         synchronized(clientLeaseLock)
         {
            if(leasePinger != null)
            {
  -            boolean isLastClientLease = leasePinger.removeClient(sessionId);
  +            boolean isLastClientLease = leasePinger.removeClient(sessionId, local);
               if(isLastClientLease)
               {
  -               leasePinger.stopPing();
  +               leasePinger.stopPing(local);
                  leasePinger = null;
               }
            }
  
  
  



More information about the jboss-cvs-commits mailing list