Hello, I'm trying to understand what the intention of the original designers who wrote this was re. what to do with the Future returned by RpcService implementations.. as it's not a ListenableFuture, you can't really directly chain anything async to it, you can only to a blocking get() ... or poll isDone() ?
com.google.common.util.concurrent.JdkFutureAdapters seems to be a Util that could be used to turn a Future into a ListenableFuture one can pass to com.google.common.util.concurrent.Futures (urgh). In genius & netvirt it's just blocking get() everywhere AFAIK. Do other projects use JdkFutureAdapters? Or another such utility? Or.. just directly cast the returned Feture to a ListenableFuture if you wrote the RPC Impl and are sure? Very ugly, and dangerous? Actually I can see that JdkFutureAdapters does that internally, so that's the recommended way to go then? Tx, M. -- Michael Vorburger, Red Hat [email protected] | IRC: vorburger @freenode | ~ = http://vorburger.ch
_______________________________________________ controller-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/controller-dev
