public class LatchedFuture<V>
extends java.lang.Object
implements java.util.concurrent.Future<V>
| Constructor and Description |
|---|
LatchedFuture() |
LatchedFuture(V value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(FutureListener<V> listener) |
boolean |
cancel(boolean b) |
V |
get() |
V |
get(long l,
java.util.concurrent.TimeUnit timeUnit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
set(V value) |
public LatchedFuture()
public LatchedFuture(V value)
public boolean cancel(boolean b)
cancel in interface java.util.concurrent.Future<V>public boolean isCancelled()
isCancelled in interface java.util.concurrent.Future<V>public boolean isDone()
isDone in interface java.util.concurrent.Future<V>public V get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get in interface java.util.concurrent.Future<V>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic V get(long l, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get in interface java.util.concurrent.Future<V>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionpublic void addListener(FutureListener<V> listener)
public void set(V value)
Copyright © 2014 eXo Platform SAS. All Rights Reserved.