Class MappingCheckedFuture<V,​X extends Exception>

  • Type Parameters:
    V - The result type returned by this Future's get method
    X - The checked exception type
    All Implemented Interfaces:
    CheckedFuture<V,​X>, ListenableFuture<V>, Future<V>

    @Deprecated(forRemoval=true)
    public final class MappingCheckedFuture<V,​X extends Exception>
    extends AbstractCheckedFuture<V,​X>
    Deprecated, for removal: This API element is subject to removal in a future version.
    An implementation of CheckedFuture that provides similar behavior for the get methods that the checkedGet methods provide.

    For CancellationException and InterruptedException, the specified exception mapper is invoked to translate them to the checked exception type.

    For ExecutionException, the mapper is invoked to translate the cause to the checked exception and a new ExecutionException is thrown with the translated cause.

    Author:
    Thomas Pantelis