本文整理了Java中reactor.core.publisher.Flux.toString()
方法的一些代码示例,展示了Flux.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flux.toString()
方法的具体详情如下:
包路径:reactor.core.publisher.Flux
类名称: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));
}
内容来源于网络,如有侵权,请联系作者删除!