@GwtIncompatible final class FuturesGetChecked extends java.lang.Object
Futures.getChecked(Future, Class)
.Modifier and Type | Class and Description |
---|---|
(package private) static interface |
FuturesGetChecked.GetCheckedTypeValidator |
(package private) static class |
FuturesGetChecked.GetCheckedTypeValidatorHolder
Provides a check of whether an exception type is valid for use with
getChecked(Future, Class) , possibly using caching. |
Modifier and Type | Field and Description |
---|---|
private static Ordering<java.lang.reflect.Constructor<?>> |
WITH_STRING_PARAM_FIRST |
Modifier | Constructor and Description |
---|---|
private |
FuturesGetChecked() |
Modifier and Type | Method and Description |
---|---|
private static FuturesGetChecked.GetCheckedTypeValidator |
bestGetCheckedTypeValidator() |
(package private) static void |
checkExceptionClassValidity(java.lang.Class<? extends java.lang.Exception> exceptionClass) |
(package private) static FuturesGetChecked.GetCheckedTypeValidator |
classValueValidator() |
(package private) static <V,X extends java.lang.Exception> |
getChecked(java.util.concurrent.Future<V> future,
java.lang.Class<X> exceptionClass) |
(package private) static <V,X extends java.lang.Exception> |
getChecked(java.util.concurrent.Future<V> future,
java.lang.Class<X> exceptionClass,
long timeout,
java.util.concurrent.TimeUnit unit)
Implementation of
Futures.getChecked(Future, Class, long, TimeUnit) . |
(package private) static <V,X extends java.lang.Exception> |
getChecked(FuturesGetChecked.GetCheckedTypeValidator validator,
java.util.concurrent.Future<V> future,
java.lang.Class<X> exceptionClass)
Implementation of
Futures.getChecked(Future, Class) . |
private static boolean |
hasConstructorUsableByGetChecked(java.lang.Class<? extends java.lang.Exception> exceptionClass) |
(package private) static boolean |
isCheckedException(java.lang.Class<? extends java.lang.Exception> type) |
private static <X> X |
newFromConstructor(java.lang.reflect.Constructor<X> constructor,
java.lang.Throwable cause) |
private static <X extends java.lang.Exception> |
newWithCause(java.lang.Class<X> exceptionClass,
java.lang.Throwable cause) |
private static <X extends java.lang.Exception> |
preferringStrings(java.util.List<java.lang.reflect.Constructor<X>> constructors) |
(package private) static FuturesGetChecked.GetCheckedTypeValidator |
weakSetValidator() |
private static <X extends java.lang.Exception> |
wrapAndThrowExceptionOrError(java.lang.Throwable cause,
java.lang.Class<X> exceptionClass) |
private static final Ordering<java.lang.reflect.Constructor<?>> WITH_STRING_PARAM_FIRST
static <V,X extends java.lang.Exception> V getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass) throws X extends java.lang.Exception
X extends java.lang.Exception
static <V,X extends java.lang.Exception> V getChecked(FuturesGetChecked.GetCheckedTypeValidator validator, java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass) throws X extends java.lang.Exception
Futures.getChecked(Future, Class)
.X extends java.lang.Exception
static <V,X extends java.lang.Exception> V getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass, long timeout, java.util.concurrent.TimeUnit unit) throws X extends java.lang.Exception
Futures.getChecked(Future, Class, long, TimeUnit)
.X extends java.lang.Exception
private static FuturesGetChecked.GetCheckedTypeValidator bestGetCheckedTypeValidator()
static FuturesGetChecked.GetCheckedTypeValidator weakSetValidator()
static FuturesGetChecked.GetCheckedTypeValidator classValueValidator()
private static <X extends java.lang.Exception> void wrapAndThrowExceptionOrError(java.lang.Throwable cause, java.lang.Class<X> exceptionClass) throws X extends java.lang.Exception
X extends java.lang.Exception
private static boolean hasConstructorUsableByGetChecked(java.lang.Class<? extends java.lang.Exception> exceptionClass)
private static <X extends java.lang.Exception> X newWithCause(java.lang.Class<X> exceptionClass, java.lang.Throwable cause)
private static <X extends java.lang.Exception> java.util.List<java.lang.reflect.Constructor<X>> preferringStrings(java.util.List<java.lang.reflect.Constructor<X>> constructors)
private static <X> X newFromConstructor(java.lang.reflect.Constructor<X> constructor, java.lang.Throwable cause)
static boolean isCheckedException(java.lang.Class<? extends java.lang.Exception> type)
static void checkExceptionClassValidity(java.lang.Class<? extends java.lang.Exception> exceptionClass)