com.twosigma.beakerx.message.Header.getId()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(118)

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

Header.getId介绍

暂无

代码示例

代码示例来源:origin: twosigma/beakerx

@Override
public String toString() {
 return "Type = " + this.getType() + " Id = " + this.getId();
}

代码示例来源:origin: twosigma/beakerx

private synchronized void send(boolean isError, String text) {
 List<Message> list = new ArrayList<>();
 list.add(getComm().createUpdateMessage(MSG_ID, getComm().getParentMessage().getHeader().getId()));
 Map<String, Serializable> asMap = addOutput(isError, text);
 list.add(getComm().createOutputContent(asMap));
 list.add(getComm().createUpdateMessage(MSG_ID, ""));
 getComm().publish(list);
}

代码示例来源:origin: twosigma/beakerx

private void display(HashMap<String, Serializable> content) {
 List<Message> list = new ArrayList<>();
 list.add(getComm().createUpdateMessage(MSG_ID, getComm().getParentMessage().getHeader().getId()));
 list.add(getComm().createMessage(DISPLAY_DATA, Comm.Buffer.EMPTY, new Comm.Data(content)));
 list.add(getComm().createUpdateMessage(MSG_ID, ""));
 getComm().publish(list);
}

代码示例来源:origin: twosigma/beakerx

@Test
 public void serializeConfig_createConfigWithProperties() {
  //when
  Header header = MessageSerializer.parse(srcJson, Header.class);
  //then
  Assertions.assertThat(header.getVersion()).isEqualTo("5.0");
  Assertions.assertThat(header.getType()).isEqualTo("execute_request");
  Assertions.assertThat(header.getId()).isEqualTo("9CEE9EE3351643CD83A6C2A29401A942");
  Assertions.assertThat(header.getUsername()).isEqualTo("username");
  Assertions.assertThat(header.getSession()).isEqualTo("605DC3793F6F402698418908DBC7C572");
 }
}

相关文章