org.apache.rocketmq.common.message.Message.setWaitStoreMsgOK()方法的使用及代码示例

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

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

Message.setWaitStoreMsgOK介绍

暂无

代码示例

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

public Message(String topic, String tags, String keys, int flag, byte[] body, boolean waitStoreMsgOK) {
  this.topic = topic;
  this.flag = flag;
  this.body = body;
  if (tags != null && tags.length() > 0)
    this.setTags(tags);
  if (keys != null && keys.length() > 0)
    this.setKeys(keys);
  this.setWaitStoreMsgOK(waitStoreMsgOK);
}

代码示例来源:origin: apache/rocketmq-externals

rocketmqMsg.setDelayTimeLevel(Integer.parseInt(value));
} else if (MessageConst.PROPERTY_WAIT_STORE_MSG_OK.equals(name)) {
  rocketmqMsg.setWaitStoreMsgOK(Boolean.parseBoolean(value));
} else if (MessageConst.PROPERTY_BUYER_ID.equals(name)) {
  rocketmqMsg.setBuyerId(value);

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

message.setKeys("keys123");
message.setTags("tags123");
message.setWaitStoreMsgOK(false);
message.setBuyerId("buyerid123");
message.setFlag(123);

代码示例来源:origin: didi/DDMQ

public Message(String topic, String tags, String keys, int flag, byte[] body, boolean waitStoreMsgOK) {
  this.topic = topic;
  this.flag = flag;
  this.body = body;
  if (tags != null && tags.length() > 0)
    this.setTags(tags);
  if (keys != null && keys.length() > 0)
    this.setKeys(keys);
  this.setWaitStoreMsgOK(waitStoreMsgOK);
}

代码示例来源:origin: javahongxi/whatsmars

rocketMsg.setWaitStoreMsgOK(waitStoreMsgOK);

代码示例来源:origin: didi/DDMQ

msg.setWaitStoreMsgOK(false);//do not wait sync to slave
MessageQueue mq = new MessageQueue(topicName, brokerName, 0);
SendMessageRequestHeader requestHeader = getMessageRequestHeader(msg, mq);

代码示例来源:origin: org.apache.rocketmq/rocketmq-common

public Message(String topic, String tags, String keys, int flag, byte[] body, boolean waitStoreMsgOK) {
  this.topic = topic;
  this.flag = flag;
  this.body = body;
  if (tags != null && tags.length() > 0)
    this.setTags(tags);
  if (keys != null && keys.length() > 0)
    this.setKeys(keys);
  this.setWaitStoreMsgOK(waitStoreMsgOK);
}

代码示例来源:origin: didi/DDMQ

message.setKeys("keys123");
message.setTags("tags123");
message.setWaitStoreMsgOK(false);
message.setBuyerId("buyerid123");
message.setFlag(123);

代码示例来源:origin: org.apache.rocketmq/rocketmq-spring-boot

rocketMsg.setWaitStoreMsgOK(waitStoreMsgOK);

代码示例来源:origin: QianmiOpen/spring-boot-starter-rocketmq

rocketMsg.setWaitStoreMsgOK(waitStoreMsgOK);

相关文章