Javadocs.

This commit is contained in:
Simone Bordet 2012-02-27 21:26:27 +01:00
parent 10d5d4acac
commit 2b5be71ad2
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ import java.util.concurrent.TimeoutException;
import org.eclipse.jetty.spdy.api.Handler;
/**
* <p>A {@link Promise} is a {@link Future} that allows a result or a failure to be set,
* so that the {@link Future} will be {@link #isDone() done}.</p>
*
* @param <T> the type of the result object
*/
public class Promise<T> implements Handler<T>, Future<T>
{
private final CountDownLatch latch = new CountDownLatch(1);