org.apache.activemq.artemis.api.core.Message.putObjectProperty()方法的使用及代码示例

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

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

Message.putObjectProperty介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

代码示例来源:origin: wildfly/wildfly

  1. private static void replaceDict(final Message message, Map<SimpleString, SimpleString> dictionary) {
  2. for (SimpleString property : new HashSet<>(message.getPropertyNames())) {
  3. SimpleString replaceTo = dictionary.get(property);
  4. if (replaceTo != null) {
  5. message.putObjectProperty(replaceTo, message.removeProperty(property));
  6. }
  7. }
  8. }

代码示例来源:origin: org.apache.activemq/artemis-core-client

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

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

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

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

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

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

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

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

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. /** Callers must call {@link #reencode()} in order to be sent to clients */
  2. default Message setAnnotation(SimpleString key, Object value) {
  3. putObjectProperty(key, value);
  4. return this;
  5. }

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

  1. private static void replaceDict(final Message message, Map<SimpleString, SimpleString> dictionary) {
  2. for (SimpleString property : new HashSet<>(message.getPropertyNames())) {
  3. SimpleString replaceTo = dictionary.get(property);
  4. if (replaceTo != null) {
  5. message.putObjectProperty(replaceTo, message.removeProperty(property));
  6. }
  7. }
  8. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. private static void replaceDict(final Message message, Map<SimpleString, SimpleString> dictionary) {
  2. for (SimpleString property : new HashSet<>(message.getPropertyNames())) {
  3. SimpleString replaceTo = dictionary.get(property);
  4. if (replaceTo != null) {
  5. message.putObjectProperty(replaceTo, message.removeProperty(property));
  6. }
  7. }
  8. }

代码示例来源:origin: org.apache.activemq/artemis-hqclient-protocol

  1. private static void replaceDict(final Message message, Map<SimpleString, SimpleString> dictionary) {
  2. for (SimpleString property : new HashSet<>(message.getPropertyNames())) {
  3. SimpleString replaceTo = dictionary.get(property);
  4. if (replaceTo != null) {
  5. message.putObjectProperty(replaceTo, message.removeProperty(property));
  6. }
  7. }
  8. }

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

  1. public static void setObjectProperty(final Message message, final String name, final Object value) {
  2. if (MessageUtil.JMSXGROUPID.equals(name)) {
  3. message.setGroupID(value == null ? null : value.toString());
  4. } else if (MessageUtil.JMSXGROUPSEQ.equals(name)) {
  5. message.setGroupSequence(getInteger(value));
  6. } else if (MessageUtil.JMSXUSERID.equals(name)) {
  7. message.setValidatedUserID(value == null ? null : value.toString());
  8. } else {
  9. message.putObjectProperty(name, value);
  10. }
  11. }

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

  1. public static void setObjectProperty(final Message message, final String name, final Object value) {
  2. if (MessageUtil.JMSXGROUPID.equals(name)) {
  3. message.setGroupID(value == null ? null : value.toString());
  4. } else if (MessageUtil.JMSXGROUPSEQ.equals(name)) {
  5. message.setGroupSequence(getInteger(value));
  6. } else if (MessageUtil.JMSXUSERID.equals(name)) {
  7. message.setValidatedUserID(value == null ? null : value.toString());
  8. } else {
  9. message.putObjectProperty(name, value);
  10. }
  11. }

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

  1. public static void setObjectProperty(final Message message, final String name, final Object value) {
  2. if (MessageUtil.JMSXGROUPID.equals(name)) {
  3. message.setGroupID(value == null ? null : value.toString());
  4. } else if (MessageUtil.JMSXGROUPSEQ.equals(name)) {
  5. message.setGroupSequence(getInteger(value));
  6. } else if (MessageUtil.JMSXUSERID.equals(name)) {
  7. message.setValidatedUserID(value == null ? null : value.toString());
  8. } else {
  9. message.putObjectProperty(name, value);
  10. }
  11. }

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

  1. msg.putObjectProperty(MessageUtil.CORRELATIONID_HEADER_NAME, headers.remove(Stomp.Headers.Send.CORRELATION_ID));
  2. msg.putObjectProperty(MessageUtil.TYPE_HEADER_NAME, headers.remove(Stomp.Headers.Send.TYPE));
  3. String name = entry.getKey();
  4. Object value = entry.getValue();
  5. msg.putObjectProperty(name, value);

代码示例来源:origin: org.apache.activemq/artemis-stomp-protocol

  1. msg.putObjectProperty(MessageUtil.CORRELATIONID_HEADER_NAME, headers.remove(Stomp.Headers.Send.CORRELATION_ID));
  2. msg.putObjectProperty(MessageUtil.TYPE_HEADER_NAME, headers.remove(Stomp.Headers.Send.TYPE));
  3. String name = entry.getKey();
  4. Object value = entry.getValue();
  5. msg.putObjectProperty(name, value);

相关文章