T
- the future result type of an asynchronous operation.public abstract class FutureContribution<T> extends Object implements FutureCallback<T>
FutureCallback
s that contribute a result
of the operation to another BasicFuture
.Constructor and Description |
---|
FutureContribution(BasicFuture<?> future)
Constructs a new instance to callback the given
BasicFuture . |
Modifier and Type | Method and Description |
---|---|
void |
cancelled() |
void |
failed(Exception ex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
completed
public FutureContribution(BasicFuture<?> future)
BasicFuture
.future
- The callback.public final void failed(Exception ex)
failed
in interface FutureCallback<T>
public final void cancelled()
cancelled
in interface FutureCallback<T>
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.