java - Java8 CompletionStage content -


so here's problem:

how content of this:

rxclient<rxcompletionstageinvoker> newrxclient = rxcompletionstage.newclient();          completionstage<response> stage = newrxclient                   .target("somelink")                    .request()                     .rx()                                        .get()                     .tocompletablefuture();          

instead of:

java.util.concurrent.completablefuture@5ba3f27a[completed normally] 

edit: found solution in case else stumbles upon problem:

stage.tocompletablefuture().get() 

i guese called:

 system.out.println(stage); 

which calls stage.tostring() prints (compatiblefuture) object, not content. content of future object use stage.get(). following should give representation of response object (and json string if returned response#tostring())

 system.out.println(stage.get()); 

i hope looking for


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -