Package org.cloudfoundry.picalc.messaging

Examples of org.cloudfoundry.picalc.messaging.WorkMessage


   
    masterHandler.registerAggregate(corrId, nrOfMessages);
   
    for (int i = 0; i < nrOfMessages; i++) {
     
      WorkMessage workMessage = new WorkMessage();
      workMessage.setCorrelationId(corrId);
      workMessage.setStart(i);
      workMessage.setNrOfElements(nrOfElements);
     
      rabbitTemplate.convertAndSend(workMessage, new MessagePostProcessor() {       
        public Message postProcessMessage(Message message) throws AmqpException {
          message.getMessageProperties().setReplyToAddress(new Address("direct://piExchange/" + QueueNames.RESULT_QUEUE_NAME));
          return message;
View Full Code Here

TOP

Related Classes of org.cloudfoundry.picalc.messaging.WorkMessage

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.