Class UncheckedFutureImpl<V>
java.lang.Object
org.apache.commons.lang3.concurrent.AbstractFutureProxy<V>
org.apache.commons.lang3.concurrent.UncheckedFutureImpl<V>
- Type Parameters:
V
- The result type returned by this UncheckedFuture'sget()
andget(long, TimeUnit)
methods.
- All Implemented Interfaces:
Future<V>
,UncheckedFuture<V>
An
Future
implementation that throws unchecked instead of checked exceptions.- Since:
- 3.13.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets perFuture.get()
but rethrows checked exceptions as unchecked.Gets perFuture.get(long, TimeUnit)
but rethrows checked exceptions as unchecked.Methods inherited from class org.apache.commons.lang3.concurrent.AbstractFutureProxy
cancel, getFuture, isCancelled, isDone
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
-
Constructor Details
-
UncheckedFutureImpl
-
-
Method Details
-
get
Description copied from interface:UncheckedFuture
Gets perFuture.get()
but rethrows checked exceptions as unchecked.The default mapping from checked to unchecked is:
- Specified by:
get
in interfaceFuture<V>
- Specified by:
get
in interfaceUncheckedFuture<V>
- Overrides:
get
in classAbstractFutureProxy<V>
-
get
Description copied from interface:UncheckedFuture
Gets perFuture.get(long, TimeUnit)
but rethrows checked exceptions as unchecked.The default mapping from checked to unchecked is:
- Specified by:
get
in interfaceFuture<V>
- Specified by:
get
in interfaceUncheckedFuture<V>
- Overrides:
get
in classAbstractFutureProxy<V>
-