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

    • Field Detail

      • value

        @Nullable
        private final V value
    • Constructor Detail

      • ImmediateSuccessfulCheckedFuture

        ImmediateSuccessfulCheckedFuture​(@Nullable
                                         V value)
    • Method Detail

      • get

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

        public V checkedGet()
        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.
      • checkedGet

        public V checkedGet​(long timeout,
                            java.util.concurrent.TimeUnit unit)
        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.