Package cn.org.rapid_framework.util.concurrent.async

Examples of cn.org.rapid_framework.util.concurrent.async.AsyncToken.waitForResult()


  @Test
  public void testSendFromOrderMailer() throws TemplateException, IOException, Exception {
    AsyncToken token = orderMailer.sendConfirmOrder("badqiu");
   
    //waitForResult主要用于测试,请使用相同功能的Future.get()
    token.waitForResult();
  }
 
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.