Examples of AsyncAdapter


Examples of org.auto.comet.web.listener.AsyncAdapter

  /** 异步等待消息 */
  private void waitMessage(HttpServletRequest request) {
    try {
      AsyncContext ac = request.startAsync();
      ac.setTimeout(this.asyncTimeout);
      ac.addListener(new AsyncAdapter() {
        @Override
        public void onError(AsyncEvent asyncevent) throws IOException {
          close();
          PushException e = new PushException("async context error!");
          fireError(e);
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.