public class FutureValue<V>
extends java.lang.Object
implements java.util.concurrent.Future<V>
Constructor and Description |
---|
FutureValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean arg0) |
V |
get() |
V |
get(long arg0,
java.util.concurrent.TimeUnit arg1) |
V |
get(long arg0,
java.util.concurrent.TimeUnit arg1,
V valueOnTimeout) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
set(V value) |
public boolean cancel(boolean arg0)
cancel
in interface java.util.concurrent.Future<V>
public V get() throws java.lang.InterruptedException
get
in interface java.util.concurrent.Future<V>
java.lang.InterruptedException
public V get(long arg0, java.util.concurrent.TimeUnit arg1) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
get
in interface java.util.concurrent.Future<V>
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public V get(long arg0, java.util.concurrent.TimeUnit arg1, V valueOnTimeout) throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean isCancelled()
isCancelled
in interface java.util.concurrent.Future<V>
public boolean isDone()
isDone
in interface java.util.concurrent.Future<V>
public void set(V value)
SpotBugs is licensed under the LGPL.