How to properly deal with exceptions coming from ListenableFuture guava?
问题 I have a library in which I have provided two methods, sync and async for our customer. They can call whichever method they feel is right for their purpose. executeSynchronous() - waits until I have a result, returns the result. executeAsynchronous() - returns a Future immediately which can be processed after other things are done, if needed. They will pass DataKey object which has the user id in it. And we will figure out which machine to call basis on the user id. So we will make http call