Package org.objectweb.joram.mom.proxies

Examples of org.objectweb.joram.mom.proxies.ProxyMessage


  public void run() {
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG,  "TcpWriter.run()");
    try {
      while (running) {
        ProxyMessage msg = replyQueue.get();
        if ((msg.getObject() instanceof MomExceptionReply) &&
            (((MomExceptionReply) msg.getObject()).getType() == MomExceptionReply.HBCloseConnection)) {
          // Exception indicating that the connection
          // has been closed by the heart beat task.
          // (see UserAgent)
          new Thread(new Runnable() {
            public void run() {           
View Full Code Here


  public void run() {
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG, "TcpReader.run()");
    try {
      while (running) {
        ProxyMessage msg = ioctrl.receive();
        canStop = false;
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "TcpReader reads msg: " + msg);
        ConnectionManager.sendToProxy(proxyId,
                                      tcpConnection.getKey(),
                                      (AbstractJmsRequest)msg.getObject(),
                                      msg);
        canStop = true;
      }
    } catch (Throwable error) {
      canStop = false;
View Full Code Here

          inputCounter = messageId;
          synchronized (this) {
            if (unackCounter < windowSize) {
              unackCounter++;
            } else {
              send(new ProxyMessage(-1, messageId, null));
            }
          }
          return new ProxyMessage(messageId, ackId, obj);
        }
        logger.log(BasicLevel.DEBUG, "IOControl.receive: already received message: " + messageId + " -> " + obj);
      }
    } catch (IOException exc) {
      if (logger.isLoggable(BasicLevel.DEBUG))
View Full Code Here

TOP

Related Classes of org.objectweb.joram.mom.proxies.ProxyMessage

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.