java.util.concurrent.RunnableFuture and Future.
| Modifier and Type | Method and Description |
|---|---|
| public RunnableFuture | addListener(FutureListener<? super V>
The listener to be called when this future completes. The listener will be passed this future as
an argument. listener)Redeclares io. |
| public <C> RunnableFuture | addListener(C
The context object that will be passed to the listener when this future completes. context, FutureContextListener<? super C, ? super V> The listener to be called when this future completes. The listener will be passed the given
context, and this future. listener)Redeclares io. |
| addListener | back to summary |
|---|---|
| public RunnableFuture Redeclares io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
| |
| addListener | back to summary |
|---|---|
| public <C> RunnableFuture Redeclares io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
| |