public interface ActionFuture<T> extends Future<T>
Future
allowing for simplified "get" operations.Modifier and Type | Method and 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,
TimeUnit unit)
Similar to
Future.get(long, java.util.concurrent.TimeUnit) , just catching the InterruptedException and throwing
an IllegalStateException instead. |
T |
actionGet(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. |
T actionGet()
Future.get()
, just catching the InterruptedException
and throwing
an IllegalStateException
instead. Also catches
ExecutionException
and throws the actual cause instead.T actionGet(String timeout)
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.timeout
- TimeoutT actionGet(long timeoutMillis)
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.timeoutMillis
- Timeout in millisT actionGet(long timeout, TimeUnit unit)
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.timeout
- Timeoutunit
- Time unit for the timeoutT actionGet(TimeValue timeout)
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.timeout
- TimeoutCopyright © 2009–2016. All rights reserved.