Package org.jboss.messaging.util

Examples of org.jboss.messaging.util.Future


/*  685 */     if (Thread.currentThread().equals(this.sessionExecutor.getThread()))
/*      */     {
/*  690 */       return;
/*      */     }
/*      */
/*  693 */     Future result = new Future();
/*      */     try
/*      */     {
/*  697 */       this.sessionExecutor.execute(new Closer(result));
/*      */
/*  699 */       if (trace) log.trace(this + " blocking wait for Closer execution");
/*  700 */       result.getResult();
/*  701 */       if (trace) log.trace(this + " got Closer result");
/*      */     }
/*      */     catch (InterruptedException e)
/*      */     {
/*      */     }
View Full Code Here


         // session is closed from within the MessageListener.onMessage(), for example), so no need
         // to register another Closer (see http://jira.jboss.org/jira/browse/JBMESSAGING-542)
         return;
      }

      Future result = new Future();
     
      try
      {
         sessionExecutor.execute(new Closer(result));

         if (trace) { log.trace(this + " blocking wait for Closer execution"); }
         result.getResult();
         if (trace) { log.trace(this + " got Closer result"); }
      }
      catch (InterruptedException e)
      {        
      }
View Full Code Here

TOP

Related Classes of org.jboss.messaging.util.Future

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.