Package net.zschech.gwt.comet.server.impl

Examples of net.zschech.gwt.comet.server.impl.CometSessionImpl


  public static CometSession getCometSession(HttpSession httpSession, boolean create, Queue<Serializable> queue) {
    synchronized (httpSession) {
      CometSession session = (CometSession) httpSession.getAttribute(CometSession.HTTP_SESSION_KEY);
      if (session == null) {
        if (create) {
          session = new CometSessionImpl(httpSession, queue, AsyncServlet.initialize(httpSession.getServletContext()));
          httpSession.setAttribute(CometSession.HTTP_SESSION_KEY, session);
        }
      }
      return session;
    }
View Full Code Here


    return getCometSession(httpSession, create, new ConcurrentLinkedQueue<Serializable>());
  }
 
  public static CometSession getCometSession(HttpSession httpSession, boolean create, Queue<Serializable> queue) {
    synchronized (httpSession) {
      CometSessionImpl session = (CometSessionImpl) httpSession.getAttribute(CometSession.HTTP_SESSION_KEY);
      if (session == null) {
        if (create) {
          session = new CometSessionImpl(httpSession, queue, AsyncServlet.initialize(httpSession.getServletContext()));
          httpSession.setAttribute(CometSession.HTTP_SESSION_KEY, session);
        }
      }
      return session;
    }
View Full Code Here

TOP

Related Classes of net.zschech.gwt.comet.server.impl.CometSessionImpl

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.