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
Post a Comment