Interface ActionFuture<T>

    • Method Summary

      Modifier and Type Method Description
      T actionGet()
      Similar to Future.get(), just catching the InterruptedException and throwing an IllegalStateException instead.
      T actionGet​(long timeoutMillis)
      Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead.
      T actionGet​(long timeout, java.util.concurrent.TimeUnit unit)
      Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead.
      T actionGet​(java.lang.String timeout)
      Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead.
      T actionGet​(TimeValue timeout)
      Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead.
      • Methods inherited from interface java.util.concurrent.Future

        cancel, get, get, isCancelled, isDone
    • Method Detail

      • actionGet

        T actionGet()
        Similar to Future.get(), just catching the InterruptedException and throwing an IllegalStateException instead. Also catches ExecutionException and throws the actual cause instead.
      • actionGet

        T actionGet​(java.lang.String timeout)
        Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead. Also catches ExecutionException and throws the actual cause instead.
      • actionGet

        T actionGet​(long timeoutMillis)
        Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead. Also catches ExecutionException and throws the actual cause instead.
        Parameters:
        timeoutMillis - Timeout in millis
      • actionGet

        T actionGet​(long timeout,
                    java.util.concurrent.TimeUnit unit)
        Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead. Also catches ExecutionException and throws the actual cause instead.
      • actionGet

        T actionGet​(TimeValue timeout)
        Similar to Future.get(long, java.util.concurrent.TimeUnit), just catching the InterruptedException and throwing an IllegalStateException instead. Also catches ExecutionException and throws the actual cause instead.