Futures#getChecked(Future, Class).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static class | FuturesGetChecked.GetCheckedTypeValidatorHolder
Provides a check of whether an exception type is valid for use with |
| Modifier and Type | Field and Description |
|---|---|
| private static final Ordering |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static FuturesGetChecked. | |
| pack-priv static void | |
| pack-priv static FuturesGetChecked. | |
| pack-priv static <V extends @Nullable Object, X extends Exception> V | |
| pack-priv static <V extends @Nullable Object, X extends Exception> V | getChecked(FuturesGetChecked.
Implementation of |
| pack-priv static <V extends @Nullable Object, X extends Exception> V | getChecked(Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit)
Implementation of |
| private static boolean | |
| pack-priv static boolean | |
| private static <X> X | |
| private static <X extends Exception> X | |
| private static <X extends Exception> List | |
| pack-priv static FuturesGetChecked. | |
| private static <X extends Exception> void |
| WITH_STRING_PARAM_FIRST | back to summary |
|---|---|
| private static final Ordering<Constructor<?>> WITH_STRING_PARAM_FIRST | |
| FuturesGetChecked | back to summary |
|---|---|
| private FuturesGetChecked() | |
| bestGetCheckedTypeValidator | back to summary |
|---|---|
| private static FuturesGetChecked. | |
| checkExceptionClassValidity | back to summary |
|---|---|
pack-priv static void checkExceptionClassValidity(Class<? extends Exception> exceptionClass)
| |
| classValueValidator | back to summary |
|---|---|
pack-priv static FuturesGetChecked.
| |
| getChecked | back to summary |
|---|---|
pack-priv static <V extends @Nullable Object, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass) throws Class-:X
| |
| getChecked | back to summary |
|---|---|
| pack-priv static <V extends @Nullable Object, X extends Exception> V getChecked(FuturesGetChecked. Implementation of | |
| getChecked | back to summary |
|---|---|
| pack-priv static <V extends @Nullable Object, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) throws TimeUnit-:X Implementation of
| |
| hasConstructorUsableByGetChecked | back to summary |
|---|---|
| private static boolean hasConstructorUsableByGetChecked(Class<? extends Exception> exceptionClass) | |
| isCheckedException | back to summary |
|---|---|
pack-priv static boolean isCheckedException(Class<? extends Exception> type)
| |
| newFromConstructor | back to summary |
|---|---|
private static <X> X newFromConstructor(Constructor<X> constructor, Throwable cause)
| |
| newWithCause | back to summary |
|---|---|
| private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) | |
| preferringStrings | back to summary |
|---|---|
| private static <X extends Exception> List | |
| weakSetValidator | back to summary |
|---|---|
pack-priv static FuturesGetChecked.
| |
| wrapAndThrowExceptionOrError | back to summary |
|---|---|
| private static <X extends Exception> void wrapAndThrowExceptionOrError(Throwable cause, Class<X> exceptionClass) throws Class-:X | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| validateClass | back to summary |
|---|---|
| public void validateClass(Class<? extends Exception> exceptionClass) | |
FuturesGetChecked#getChecked(Future, Class), possibly using caching.
Uses reflection to gracefully fall back to when certain implementations aren't available.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final FuturesGetChecked. | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static FuturesGetChecked. | getBestValidator()
Returns the ClassValue-using validator, or falls back to the "weak Set" implementation if unable to do so. |
| BEST_VALIDATOR | back to summary |
|---|---|
| pack-priv static final FuturesGetChecked. | |
| CLASS_VALUE_VALIDATOR_NAME | back to summary |
|---|---|
| pack-priv static final String CLASS_VALUE_VALIDATOR_NAME | |
| GetCheckedTypeValidatorHolder | back to summary |
|---|---|
| pack-priv GetCheckedTypeValidatorHolder() | |
| getBestValidator | back to summary |
|---|---|
| pack-priv static FuturesGetChecked. Returns the ClassValue-using validator, or falls back to the "weak Set" implementation if unable to do so. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FuturesGetChecked. | |
| private static final ClassValue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | validateClass(Class<? extends Exception> exceptionClass)
Implements com. |
| public static FuturesGetChecked. | |
| public static FuturesGetChecked. |
| INSTANCE | back to summary |
|---|---|
| public static final FuturesGetChecked. | |
| isValidClass | back to summary |
|---|---|
| private static final ClassValue<Boolean> isValidClass | |
| ClassValueValidator | back to summary |
|---|---|
| private ClassValueValidator() | |
| validateClass | back to summary |
|---|---|
| public void validateClass(Class<? extends Exception> exceptionClass) Implements com.
| |
| valueOf | back to summary |
|---|---|
| public static FuturesGetChecked. | |
| values | back to summary |
|---|---|
| public static FuturesGetChecked. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FuturesGetChecked. | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | validateClass(Class<? extends Exception> exceptionClass)
Implements com. |
| public static FuturesGetChecked. | |
| public static FuturesGetChecked. |
| INSTANCE | back to summary |
|---|---|
| public static final FuturesGetChecked. | |
| validClasses | back to summary |
|---|---|
| private static final Set<WeakReference<Class<? extends Exception>>> validClasses | |
| WeakSetValidator | back to summary |
|---|---|
| private WeakSetValidator() | |
| validateClass | back to summary |
|---|---|
| public void validateClass(Class<? extends Exception> exceptionClass) Implements com.
| |
| valueOf | back to summary |
|---|---|
| public static FuturesGetChecked. | |
| values | back to summary |
|---|---|
| public static FuturesGetChecked. | |