|
46 | 46 | * Basically, this class is a container for a server response which will |
47 | 47 | * arrive at some time in the future. It also accounts for the possibility |
48 | 48 | * that a command might fail and that a future might be cancelled by a user. |
49 | | - * </p><p> |
| 49 | + * </p> |
50 | 50 | * A {@code CommandFuture} can therefore have 4 different states: |
51 | 51 | * <ul> |
52 | 52 | * <li><b>Waiting</b> - No response from the server has arrived yet</li> |
|
56 | 56 | * </ul> |
57 | 57 | * You can check the state of the future using the methods {@link #isDone()}, |
58 | 58 | * {@link #isSuccessful()}, {@link #isFailed()} and {@link #isCancelled()}. |
59 | | - * </p><p> |
| 59 | + * <p> |
60 | 60 | * A {@code CommandFuture}'s value can be retrieved by calling {@link #get()} |
61 | 61 | * or {@link #get(long, TimeUnit)}, which block the current thread until the |
62 | 62 | * server response arrives. The method with a timeout should be preferred |
|
74 | 74 | * one {@link FailureListener} registered. All {@link TS3ApiAsync} methods are |
75 | 75 | * guaranteed to return a {@code CommandFuture} with no listeners registered. |
76 | 76 | * </p><p> |
77 | | - * To set the value of a {@code CommandFuture}, the {@link #set(V)} method is used; |
| 77 | + * To set the value of a {@code CommandFuture}, the {@link #set(Object)} method is used; |
78 | 78 | * to notify it of a failure, {@link #fail(QueryError)} is used. You usually |
79 | 79 | * shouldn't call these methods yourself, however. That's the job of the API. |
80 | 80 | * </p><p> |
@@ -453,7 +453,7 @@ public synchronized CommandFuture<V> onFailure(FailureListener listener) { |
453 | 453 | } |
454 | 454 |
|
455 | 455 | /** |
456 | | - * Forwards a success to another future by calling {@link #set(V)} on |
| 456 | + * Forwards a success to another future by calling {@link #set(Object)} on |
457 | 457 | * that future with the value this future was set to. |
458 | 458 | * <p> |
459 | 459 | * This will register a {@link SuccessListener}, meaning that you will not |
@@ -615,7 +615,7 @@ public void handleFailure(QueryError error) { |
615 | 615 |
|
616 | 616 | /** |
617 | 617 | * A listener which will be notified if the {@link CommandFuture} succeeded. |
618 | | - * In that case, {@link #handleSuccess(V)} will be called with the value |
| 618 | + * In that case, {@link #handleSuccess(Object)} will be called with the value |
619 | 619 | * the future has been set to. |
620 | 620 | * <p> |
621 | 621 | * A {@code CommandFuture}'s {@code SuccessListener} can be set by calling |
|
0 commit comments