Package com.googlecode.objectify.util
Class FutureHelper
java.lang.Object
com.googlecode.objectify.util.FutureHelper
This provides some of the methods of Google's (package-private) FutureHelper
- Author:
- Jeff Schnitzer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
Quietly perform the get() on a futurestatic void
Properly unwraps ExecutionException, throwing the relevant original cause.
-
Method Details
-
quietGet
Quietly perform the get() on a future -
unwrapAndThrow
Properly unwraps ExecutionException, throwing the relevant original cause. Otherwise RuntimeExceptions get thrown and checked exceptions get wrapped in a RuntimeException.
-