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

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

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

Message.setBrokerInTime介绍

暂无

代码示例

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));
  4. info.setJMSXGroupFirstForConsumer(dataIn.readBoolean());

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));
  4. info.setJMSXGroupFirstForConsumer(dataIn.readBoolean());

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

  1. @Override
  2. public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  3. ActiveMQDestination destination = message.getDestination();
  4. message.setBrokerInTime(System.currentTimeMillis());
  5. if (producerExchange.isMutable() || producerExchange.getRegion() == null
  6. || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
  7. // ensure the destination is registered with the RegionBroker
  8. producerExchange.getConnectionContext().getBroker()
  9. .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
  10. producerExchange.setRegion(getRegion(destination));
  11. producerExchange.setRegionDestination(null);
  12. }
  13. producerExchange.getRegion().send(producerExchange, message);
  14. // clean up so these references aren't kept (possible leak) in the producer exchange
  15. // especially since temps are transitory
  16. if (producerExchange.isMutable()) {
  17. producerExchange.setRegionDestination(null);
  18. producerExchange.setRegion(null);
  19. }
  20. }

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));
  4. info.setJMSXGroupFirstForConsumer(dataIn.readBoolean());

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn));
  3. info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  4. info.setJMSXGroupFirstForConsumer(bs.readBoolean());

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  4. info.setJMSXGroupFirstForConsumer(bs.readBoolean());

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  4. info.setJMSXGroupFirstForConsumer(bs.readBoolean());

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

  1. @Override
  2. public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  3. message.setBrokerInTime(System.currentTimeMillis());
  4. if (producerExchange.isMutable() || producerExchange.getRegion() == null
  5. || (producerExchange.getRegion() != null && producerExchange.getRegion().getDestinationMap().get(message.getDestination()) == null)) {
  6. ActiveMQDestination destination = message.getDestination();
  7. // ensure the destination is registered with the RegionBroker
  8. producerExchange.getConnectionContext().getBroker().addDestination(producerExchange.getConnectionContext(), destination,false);
  9. Region region;
  10. switch (destination.getDestinationType()) {
  11. case ActiveMQDestination.QUEUE_TYPE:
  12. region = queueRegion;
  13. break;
  14. case ActiveMQDestination.TOPIC_TYPE:
  15. region = topicRegion;
  16. break;
  17. case ActiveMQDestination.TEMP_QUEUE_TYPE:
  18. region = tempQueueRegion;
  19. break;
  20. case ActiveMQDestination.TEMP_TOPIC_TYPE:
  21. region = tempTopicRegion;
  22. break;
  23. default:
  24. throw createUnknownDestinationTypeException(destination);
  25. }
  26. producerExchange.setRegion(region);
  27. producerExchange.setRegionDestination(null);
  28. }
  29. producerExchange.getRegion().send(producerExchange, message);
  30. }

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

  1. @Override
  2. public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  3. ActiveMQDestination destination = message.getDestination();
  4. message.setBrokerInTime(System.currentTimeMillis());
  5. if (producerExchange.isMutable() || producerExchange.getRegion() == null
  6. || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
  7. // ensure the destination is registered with the RegionBroker
  8. producerExchange.getConnectionContext().getBroker()
  9. .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
  10. producerExchange.setRegion(getRegion(destination));
  11. producerExchange.setRegionDestination(null);
  12. }
  13. producerExchange.getRegion().send(producerExchange, message);
  14. // clean up so these references aren't kept (possible leak) in the producer exchange
  15. // especially since temps are transitory
  16. if (producerExchange.isMutable()) {
  17. producerExchange.setRegionDestination(null);
  18. producerExchange.setRegion(null);
  19. }
  20. }

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

  1. @Override
  2. public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  3. ActiveMQDestination destination = message.getDestination();
  4. message.setBrokerInTime(System.currentTimeMillis());
  5. if (producerExchange.isMutable() || producerExchange.getRegion() == null
  6. || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
  7. // ensure the destination is registered with the RegionBroker
  8. producerExchange.getConnectionContext().getBroker()
  9. .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
  10. producerExchange.setRegion(getRegion(destination));
  11. producerExchange.setRegionDestination(null);
  12. }
  13. producerExchange.getRegion().send(producerExchange, message);
  14. // clean up so these references aren't kept (possible leak) in the producer exchange
  15. // especially since temps are transitory
  16. if (producerExchange.isMutable()) {
  17. producerExchange.setRegionDestination(null);
  18. producerExchange.setRegion(null);
  19. }
  20. }

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

  1. @Override
  2. public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  3. ActiveMQDestination destination = message.getDestination();
  4. message.setBrokerInTime(System.currentTimeMillis());
  5. if (producerExchange.isMutable() || producerExchange.getRegion() == null
  6. || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
  7. // ensure the destination is registered with the RegionBroker
  8. producerExchange.getConnectionContext().getBroker()
  9. .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
  10. producerExchange.setRegion(getRegion(destination));
  11. producerExchange.setRegionDestination(null);
  12. }
  13. producerExchange.getRegion().send(producerExchange, message);
  14. // clean up so these references aren't kept (possible leak) in the producer exchange
  15. // especially since temps are transitory
  16. if (producerExchange.isMutable()) {
  17. producerExchange.setRegionDestination(null);
  18. producerExchange.setRegion(null);
  19. }
  20. }

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

  1. info.setCluster(null);
  2. info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs));
  3. info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs));

相关文章

Message类方法