Top Description Constructors Methods
org.apache.commons.lang3.concurrent

pack-priv final Class UncheckedFutureImpl<V>

extends AbstractFutureProxy<V>
implements UncheckedFuture<V>
Class Inheritance
All Implemented Interfaces
org.apache.commons.lang3.concurrent.UncheckedFuture, java.util.concurrent.Future
Type Parameters
<V>
The result type returned by this UncheckedFuture's get() and get(long, TimeUnit) methods.
Imports
java.util.concurrent.ExecutionException, .Future, .TimeUnit, .TimeoutException, org.apache.commons.lang3.exception.UncheckedInterruptedException

An Future implementation that throws unchecked instead of checked exceptions.
Since
3.13.0
See Also
Future

Constructor Summary

AccessConstructor and Description
pack-priv
UncheckedFutureImpl(final Future<V> future)

Method Summary

Modifier and TypeMethod and Description
public V
public V
Inherited from org.apache.commons.lang3.concurrent.AbstractFutureProxy:
cancelgetFutureisCancelledisDone

Constructor Detail

UncheckedFutureImplback to summary
pack-priv UncheckedFutureImpl(final Future<V> future)

Method Detail

getback to summary
public V get()

Overrides org.apache.commons.lang3.concurrent.AbstractFutureProxy.get.

Implements org.apache.commons.lang3.concurrent.UncheckedFuture.get, java.util.concurrent.Future.get.

Doc from org.apache.commons.lang3.concurrent.UncheckedFuture.get.

Gets per Future#get() but rethrows checked exceptions as unchecked.

The default mapping from checked to unchecked is:

Annotations
@Override
getback to summary
public V get(final long timeout, final TimeUnit unit)

Overrides org.apache.commons.lang3.concurrent.AbstractFutureProxy.get.

Implements org.apache.commons.lang3.concurrent.UncheckedFuture.get, java.util.concurrent.Future.get.

Doc from org.apache.commons.lang3.concurrent.UncheckedFuture.get.

Gets per Future#get(long, TimeUnit) but rethrows checked exceptions as unchecked.

The default mapping from checked to unchecked is:

Annotations
@Override