Class UncheckedFutureImpl<V>

  • Type Parameters:
    V - The result type returned by this UncheckedFuture's get() and get(long, TimeUnit) methods.
    All Implemented Interfaces:
    java.util.concurrent.Future<V>, UncheckedFuture<V>

    class UncheckedFutureImpl<V>
    extends AbstractFutureProxy<V>
    implements UncheckedFuture<V>
    An Future implementation that throws unchecked instead of checked exceptions.
    Since:
    3.13.0
    See Also:
    Future
    • Constructor Summary

      Constructors 
      Constructor Description
      UncheckedFutureImpl​(java.util.concurrent.Future<V> future)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V get()
      Gets per Future.get() but rethrows checked exceptions as unchecked.
      V get​(long timeout, java.util.concurrent.TimeUnit unit)
      Gets per Future.get(long, TimeUnit) but rethrows checked exceptions as unchecked.
      • 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