Examples of heartbeat()


Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        sendDisconnectDueToSessionExpiry(httpServletResponse);

        return;
      }
      queue.heartBeat();

      if (wait) {
        synchronized (queue.getActivationLock()) {
          final Continuation cont = ContinuationSupport.getContinuation(httpServletRequest, queue);
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        sendDisconnectDueToSessionExpiry(outputStream);
        return;
      }

      queue.heartBeat();

      queue.poll(wait, outputStream);

      outputStream.close();
    }
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        break;


      case END:
        if ((queue = getQueue(session, false)) != null) {
          queue.heartBeat();
        }

        synchronized (activeEvents) {
          Set<HttpEvent> evt = activeEvents.get(session);
          if (evt != null) {
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

            evt.remove(event);
          }
        }

        if (event.getType() == HttpEvent.EventType.TIMEOUT) {
          if (queue != null) queue.heartBeat();
        }
        else {
          if (queue != null) {
            queueToSession.remove(queue);
            service.getBus().closeQueue(session.getSessionId());
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

                               HttpServletResponse httpServletResponse, boolean wait) throws IOException {
    final OutputStream stream = httpServletResponse.getOutputStream();

    try {
      final MessageQueue queue = service.getBus().getQueue(session);
      queue.heartBeat();

      if (queue == null) {
        switch (getConnectionPhase(httpServletRequest)) {
          case CONNECTING:
          case DISCONNECTING:
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        break;


      case END:
        if ((queue = getQueue(session, false)) != null) {
          queue.heartBeat();
        }

        synchronized (activeEvents) {
          Set<HttpEvent> evt = activeEvents.get(session);
          if (evt != null) {
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

            evt.remove(event);
          }
        }

        if (event.getType() == HttpEvent.EventType.TIMEOUT) {
          if (queue != null) queue.heartBeat();
        }
        else {
          if (queue != null) {
            queueToSession.remove(queue);
            service.getBus().closeQueue(session.getSessionId());
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        sendDisconnectDueToSessionExpiry(httpServletResponse.getOutputStream());

        return;
      }
      queue.heartBeat();

      if (wait) {
        synchronized (queue.getActivationLock()) {
          final Continuation cont = ContinuationSupport.getContinuation(httpServletRequest, queue);
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        sendDisconnectDueToSessionExpiry(outputStream);
        return;
      }

      queue.heartBeat();

      queue.poll(wait, outputStream);

      outputStream.close();
    }
View Full Code Here

Examples of org.jboss.errai.bus.server.api.MessageQueue.heartBeat()

        sendDisconnectDueToSessionExpiry(outputStream);
        return;
      }

      queue.heartBeat();

      queue.poll(wait, outputStream);

      outputStream.close();
    }
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.