Package com.opengamma.transport

Examples of com.opengamma.transport.ByteArrayMessageReceiver


    // Make sure the map stays clean if no response is received before timeout occurs.
    // It would be nice if AmqpTemplate had a receive() method with a timeout parameter.
    _executor.schedule(new Runnable() {
      @Override
      public void run() {
        ByteArrayMessageReceiver receiver = _correlationId2MessageReceiver.remove(correlationId);
        if (receiver != null) {
          s_logger.error("Timeout reached while waiting for a response to send to {}", responseReceiver);
        }
      }
    }, _timeout, TimeUnit.MILLISECONDS);
View Full Code Here


      s_logger.error("Got reply with no correlation ID: {} ", message);
      return;
    }
   
    String correlationId = new String(correlationIdBytes, Charsets.UTF_8);
    ByteArrayMessageReceiver receiver = _correlationId2MessageReceiver.remove(correlationId);
    if (receiver != null) {
      receiver.messageReceived(message.getBody());     
    } else {
      s_logger.warn("No receiver for message: {}", message);     
    }
  }
View Full Code Here

TOP

Related Classes of com.opengamma.transport.ByteArrayMessageReceiver

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.