T - the future result type of an asynchronous operation for this type.U - the future result type of an asynchronous operation for the FutureCallback.public class CompletingFutureContribution<T,U> extends FutureContribution<T>
BasicFuture.| Constructor and Description |
|---|
CompletingFutureContribution(BasicFuture<U> future)
Constructs a new instance to callback the given
BasicFuture. |
CompletingFutureContribution(BasicFuture<U> future,
Function<T,U> resultProvider)
Constructs a new instance to callback the given
BasicFuture. |
| Modifier and Type | Method and Description |
|---|---|
void |
completed(T result) |
cancelled, failedpublic CompletingFutureContribution(BasicFuture<U> future)
BasicFuture.future - The callback.public CompletingFutureContribution(BasicFuture<U> future, Function<T,U> resultProvider)
BasicFuture.future - The callback.resultProvider - Provides the result to complete the future.public void completed(T result)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.