I have an endpoint which produces a report.

The request to produce the report is sent to a producer, which returns a 
CompletableFuture<Report>.

However, because DropWizard requires the resource to return the Report 
instance directly (in order for it to get serialized to json), I have to do 
future.get() in the resource. 

Is it possible to have non-blocking resources, so I could add a callback to 
the future, and when that cb is triggered, that's when I return the report 
to Dropwizard?

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to