Top Description Methods
io.netty5.util.concurrent

public Interface FutureContextListener<C, V>

Known Direct Implementers
io.netty5.util.concurrent.Futures.PropagateCancel, io.netty5.util.concurrent.Futures.PassThrough
Annotations
@FunctionalInterface

Listens to the result of a Future. The result of the asynchronous operation is notified once this listener is added by calling Future#addListener(Object, FutureContextListener).
Future f = new DefaultPromise(..);
f.addListener(context, (context, future) -> { .. });

Method Summary

Modifier and TypeMethod and Description
public void
operationComplete(C context, Future<? extends V>
the source Future which called this callback
future
)

Invoked when the operation associated with the Future has been completed.

Method Detail

operationCompleteback to summary
public void operationComplete(C context, Future<? extends V> future) throws Exception

Invoked when the operation associated with the Future has been completed.

Parameters
future:Future<? extends V>

the source Future which called this callback