org.apache.activemq.command.Message.setOriginalDestination()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(20.2k)|赞(0)|评价(0)|浏览(163)

本文整理了Java中org.apache.activemq.command.Message.setOriginalDestination()方法的一些代码示例,展示了Message.setOriginalDestination()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.setOriginalDestination()方法的具体详情如下:
包路径:org.apache.activemq.command.Message
类名称:Message
方法名:setOriginalDestination

Message.setOriginalDestination介绍

暂无

代码示例

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId)looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId)looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId)looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId)looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId)looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: apache/activemq

  1. public static void doResend(final ConnectionContext context, Message originalMessage, ActiveMQDestination deadLetterDestination, boolean copy) throws Exception {
  2. Message message = copy ? originalMessage.copy() : originalMessage;
  3. message.setOriginalDestination(message.getDestination());
  4. message.setOriginalTransactionId(message.getTransactionId());
  5. message.setDestination(deadLetterDestination);
  6. message.setTransactionId(null);
  7. message.setMemoryUsage(null);
  8. message.setRedeliveryCounter(0);
  9. message.getMessageId().setDataLocator(null);
  10. boolean originalFlowControl = context.isProducerFlowControl();
  11. try {
  12. context.setProducerFlowControl(false);
  13. ProducerInfo info = new ProducerInfo();
  14. ProducerState state = new ProducerState(info);
  15. ProducerBrokerExchange producerExchange = new ProducerBrokerExchange();
  16. producerExchange.setProducerState(state);
  17. producerExchange.setMutable(true);
  18. producerExchange.setConnectionContext(context);
  19. context.getBroker().send(producerExchange, message);
  20. } finally {
  21. context.setProducerFlowControl(originalFlowControl);
  22. }
  23. }

代码示例来源:origin: apache/activemq

  1. try {
  2. Message msg = (Message) this.wireFormat.unmarshal(packet);
  3. msg.setOriginalTransactionId(null);
  4. msg.setPersistent(false);
  5. msg.setType(AdvisorySupport.ADIVSORY_MESSAGE_TYPE);
  6. msg.setMessageId(new MessageId(this.producerId, this.messageIdGenerator.getNextSequenceId()));
  7. msg.setOriginalDestination(msg.getDestination());
  8. msg.setDestination(replyTo);
  9. msg.setResponseRequired(false);
  10. msg.setProducerId(this.producerId);

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId)looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId)looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId)looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId)looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId)looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: apache/activemq

  1. message.setOriginalDestination(message.getDestination());
  2. message.setOriginalTransactionId(message.getTransactionId());
  3. advisoryTopic = AdvisorySupport.getNoTopicConsumersAdvisoryTopic(destination);
  4. message.setDestination(advisoryTopic);
  5. message.setTransactionId(null);

代码示例来源:origin: org.apache.activemq/activemq-broker

  1. try {
  2. Message msg = (Message) this.wireFormat.unmarshal(packet);
  3. msg.setOriginalTransactionId(null);
  4. msg.setPersistent(false);
  5. msg.setType(AdvisorySupport.ADIVSORY_MESSAGE_TYPE);
  6. msg.setMessageId(new MessageId(this.producerId, this.messageIdGenerator.getNextSequenceId()));
  7. msg.setOriginalDestination(msg.getDestination());
  8. msg.setDestination(replyTo);
  9. msg.setResponseRequired(false);
  10. msg.setProducerId(this.producerId);

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId) looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: pierre/meteo

  1. public static void doResend(final ConnectionContext context, Message originalMessage, ActiveMQDestination deadLetterDestination, boolean copy) throws Exception {
  2. Message message = copy ? originalMessage.copy() : originalMessage;
  3. message.setOriginalDestination(message.getDestination());
  4. message.setOriginalTransactionId(message.getTransactionId());
  5. message.setDestination(deadLetterDestination);
  6. message.setTransactionId(null);
  7. message.setMemoryUsage(null);
  8. message.setRedeliveryCounter(0);
  9. boolean originalFlowControl = context.isProducerFlowControl();
  10. try {
  11. context.setProducerFlowControl(false);
  12. ProducerInfo info = new ProducerInfo();
  13. ProducerState state = new ProducerState(info);
  14. ProducerBrokerExchange producerExchange = new ProducerBrokerExchange();
  15. producerExchange.setProducerState(state);
  16. producerExchange.setMutable(true);
  17. producerExchange.setConnectionContext(context);
  18. context.getBroker().send(producerExchange, message);
  19. } finally {
  20. context.setProducerFlowControl(originalFlowControl);
  21. }
  22. }

代码示例来源:origin: org.apache.activemq/activemq-all

  1. try {
  2. Message msg = (Message) this.wireFormat.unmarshal(packet);
  3. msg.setOriginalTransactionId(null);
  4. msg.setPersistent(false);
  5. msg.setType(AdvisorySupport.ADIVSORY_MESSAGE_TYPE);
  6. msg.setMessageId(new MessageId(this.producerId, this.messageIdGenerator.getNextSequenceId()));
  7. msg.setOriginalDestination(msg.getDestination());
  8. msg.setDestination(replyTo);
  9. msg.setResponseRequired(false);
  10. msg.setProducerId(this.producerId);

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId) looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: org.apache.activemq/activemq-broker

  1. public static void doResend(final ConnectionContext context, Message originalMessage, ActiveMQDestination deadLetterDestination, boolean copy) throws Exception {
  2. Message message = copy ? originalMessage.copy() : originalMessage;
  3. message.setOriginalDestination(message.getDestination());
  4. message.setOriginalTransactionId(message.getTransactionId());
  5. message.setDestination(deadLetterDestination);
  6. message.setTransactionId(null);
  7. message.setMemoryUsage(null);
  8. message.setRedeliveryCounter(0);
  9. message.getMessageId().setDataLocator(null);
  10. boolean originalFlowControl = context.isProducerFlowControl();
  11. try {
  12. context.setProducerFlowControl(false);
  13. ProducerInfo info = new ProducerInfo();
  14. ProducerState state = new ProducerState(info);
  15. ProducerBrokerExchange producerExchange = new ProducerBrokerExchange();
  16. producerExchange.setProducerState(state);
  17. producerExchange.setMutable(true);
  18. producerExchange.setConnectionContext(context);
  19. context.getBroker().send(producerExchange, message);
  20. } finally {
  21. context.setProducerFlowControl(originalFlowControl);
  22. }
  23. }

代码示例来源:origin: org.apache.activemq/activemq-osgi

  1. try {
  2. Message msg = (Message) this.wireFormat.unmarshal(packet);
  3. msg.setOriginalTransactionId(null);
  4. msg.setPersistent(false);
  5. msg.setType(AdvisorySupport.ADIVSORY_MESSAGE_TYPE);
  6. msg.setMessageId(new MessageId(this.producerId, this.messageIdGenerator.getNextSequenceId()));
  7. msg.setOriginalDestination(msg.getDestination());
  8. msg.setDestination(replyTo);
  9. msg.setResponseRequired(false);
  10. msg.setProducerId(this.producerId);

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId) looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: org.apache.activemq/activemq-all

  1. public static void doResend(final ConnectionContext context, Message originalMessage, ActiveMQDestination deadLetterDestination, boolean copy) throws Exception {
  2. Message message = copy ? originalMessage.copy() : originalMessage;
  3. message.setOriginalDestination(message.getDestination());
  4. message.setOriginalTransactionId(message.getTransactionId());
  5. message.setDestination(deadLetterDestination);
  6. message.setTransactionId(null);
  7. message.setMemoryUsage(null);
  8. message.setRedeliveryCounter(0);
  9. message.getMessageId().setDataLocator(null);
  10. boolean originalFlowControl = context.isProducerFlowControl();
  11. try {
  12. context.setProducerFlowControl(false);
  13. ProducerInfo info = new ProducerInfo();
  14. ProducerState state = new ProducerState(info);
  15. ProducerBrokerExchange producerExchange = new ProducerBrokerExchange();
  16. producerExchange.setProducerState(state);
  17. producerExchange.setMutable(true);
  18. producerExchange.setConnectionContext(context);
  19. context.getBroker().send(producerExchange, message);
  20. } finally {
  21. context.setProducerFlowControl(originalFlowControl);
  22. }
  23. }

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId)looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId)looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId)looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId)looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination)looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId)looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: org.apache.activemq/activemq-osgi

  1. public static void doResend(final ConnectionContext context, Message originalMessage, ActiveMQDestination deadLetterDestination, boolean copy) throws Exception {
  2. Message message = copy ? originalMessage.copy() : originalMessage;
  3. message.setOriginalDestination(message.getDestination());
  4. message.setOriginalTransactionId(message.getTransactionId());
  5. message.setDestination(deadLetterDestination);
  6. message.setTransactionId(null);
  7. message.setMemoryUsage(null);
  8. message.setRedeliveryCounter(0);
  9. message.getMessageId().setDataLocator(null);
  10. boolean originalFlowControl = context.isProducerFlowControl();
  11. try {
  12. context.setProducerFlowControl(false);
  13. ProducerInfo info = new ProducerInfo();
  14. ProducerState state = new ProducerState(info);
  15. ProducerBrokerExchange producerExchange = new ProducerBrokerExchange();
  16. producerExchange.setProducerState(state);
  17. producerExchange.setMutable(true);
  18. producerExchange.setConnectionContext(context);
  19. context.getBroker().send(producerExchange, message);
  20. } finally {
  21. context.setProducerFlowControl(originalFlowControl);
  22. }
  23. }

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId) looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: org.apache.activemq/activemq-broker

  1. message.setOriginalDestination(message.getDestination());
  2. message.setOriginalTransactionId(message.getTransactionId());
  3. advisoryTopic = AdvisorySupport.getNoTopicConsumersAdvisoryTopic(destination);
  4. message.setDestination(advisoryTopic);
  5. message.setTransactionId(null);

代码示例来源:origin: apache/activemq

  1. info.setProducerId((org.apache.activemq.command.ProducerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  2. info.setDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  3. info.setTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  4. info.setOriginalDestination((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalCachedObject(wireFormat, dataIn));
  5. info.setMessageId((org.apache.activemq.command.MessageId) looseUnmarsalNestedObject(wireFormat, dataIn));
  6. info.setOriginalTransactionId((org.apache.activemq.command.TransactionId) looseUnmarsalCachedObject(wireFormat, dataIn));
  7. info.setGroupID(looseUnmarshalString(dataIn));
  8. info.setGroupSequence(dataIn.readInt());
  9. info.setCorrelationId(looseUnmarshalString(dataIn));
  10. info.setPersistent(dataIn.readBoolean());
  11. info.setExpiration(looseUnmarshalLong(wireFormat, dataIn));
  12. info.setPriority(dataIn.readByte());
  13. info.setReplyTo((org.apache.activemq.command.ActiveMQDestination) looseUnmarsalNestedObject(wireFormat, dataIn));
  14. info.setTimestamp(looseUnmarshalLong(wireFormat, dataIn));
  15. info.setType(looseUnmarshalString(dataIn));
  16. info.setContent(looseUnmarshalByteSequence(dataIn));
  17. info.setMarshalledProperties(looseUnmarshalByteSequence(dataIn));
  18. info.setTargetConsumerId((org.apache.activemq.command.ConsumerId) looseUnmarsalCachedObject(wireFormat, dataIn));
  19. info.setCompressed(dataIn.readBoolean());
  20. info.setRedeliveryCounter(dataIn.readInt());

代码示例来源:origin: org.apache.activemq/activemq-all

  1. message.setOriginalDestination(message.getDestination());
  2. message.setOriginalTransactionId(message.getTransactionId());
  3. advisoryTopic = AdvisorySupport.getNoTopicConsumersAdvisoryTopic(destination);
  4. message.setDestination(advisoryTopic);
  5. message.setTransactionId(null);

相关文章

Message类方法