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, isDoneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
-
Constructor Details
-
UncheckedFutureImpl
-
-
Method Details
-
get
Description copied from interface:UncheckedFutureGets perFuture.get()but rethrows checked exceptions as unchecked.The default mapping from checked to unchecked is:
- Specified by:
getin interfaceFuture<V>- Specified by:
getin interfaceUncheckedFuture<V>- Overrides:
getin classAbstractFutureProxy<V>
-
get
Description copied from interface:UncheckedFutureGets perFuture.get(long, TimeUnit)but rethrows checked exceptions as unchecked.The default mapping from checked to unchecked is:
- Specified by:
getin interfaceFuture<V>- Specified by:
getin interfaceUncheckedFuture<V>- Overrides:
getin classAbstractFutureProxy<V>
-