reactor.core.publisher.Flux.toString()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(193)

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

Flux.toString介绍

暂无

代码示例

代码示例来源:origin: reactor/reactor-core

@Test
public void onAssemblyDescription() {
  String fluxOnAssemblyStr = Flux.just(1).checkpoint("onAssemblyDescription").toString();
  String expectedDescription = "checkpoint(\"onAssemblyDescription\")";
  assertTrue("Description not included: " + fluxOnAssemblyStr, fluxOnAssemblyStr.contains(expectedDescription));
  String parallelFluxOnAssemblyStr = Flux.range(1, 10).parallel(2).checkpoint("onAssemblyDescription").toString();
  assertTrue("Description not included: " + parallelFluxOnAssemblyStr, parallelFluxOnAssemblyStr.contains(expectedDescription));
}

代码示例来源:origin: com.aol.cyclops/cyclops-reactor

/**
 * @return
 * @see reactor.core.publisher.Flux#toString()
 */
public String toString() {
  return "[FluxKind "+boxed.toString() + "]";
}
/**

代码示例来源:origin: io.projectreactor.ipc/reactor-codec

@Override
public String toString() {
  return "{" +
      " codec : \"" + super.toString() + "\" " +
      '}';
}

代码示例来源:origin: hantsy/spring-reactive-sample

@Override
public Mono<Void> handle(WebSocketSession session) {
  String protocol = session.getHandshakeInfo().getSubProtocol();
  WebSocketMessage message = session.textMessage(this.posts.findAll().takeLast(0).toString());
  return doSend(session, Mono.just(message));
}

相关文章

Flux类方法