Class ImmediateFuture.ImmediateFailedCheckedFuture<V,​X extends java.lang.Exception>

    • Field Detail

      • thrown

        private final X extends java.lang.Exception thrown
    • Constructor Detail

      • ImmediateFailedCheckedFuture

        ImmediateFailedCheckedFuture​(X thrown)
    • Method Detail

      • get

        public V get()
              throws java.util.concurrent.ExecutionException
        Specified by:
        get in interface java.util.concurrent.Future<V>
        Specified by:
        get in class ImmediateFuture<V>
        Throws:
        java.util.concurrent.ExecutionException
      • checkedGet

        public V checkedGet()
                     throws X extends java.lang.Exception
        Description copied from interface: CheckedFuture
        Exception checking version of Future.get() that will translate InterruptedException, CancellationException and ExecutionException into application-specific exceptions.
        Specified by:
        checkedGet in interface CheckedFuture<V,​X extends java.lang.Exception>
        Returns:
        the result of executing the future.
        Throws:
        X - on interruption, cancellation or execution exceptions.
        X extends java.lang.Exception
      • checkedGet

        public V checkedGet​(long timeout,
                            java.util.concurrent.TimeUnit unit)
                     throws X extends java.lang.Exception
        Description copied from interface: CheckedFuture
        Exception checking version of Future.get(long, TimeUnit) that will translate InterruptedException, CancellationException and ExecutionException into application-specific exceptions. On timeout this method throws a normal TimeoutException.
        Specified by:
        checkedGet in interface CheckedFuture<V,​X extends java.lang.Exception>
        Returns:
        the result of executing the future.
        Throws:
        X - on interruption, cancellation or execution exceptions.
        X extends java.lang.Exception