Top Description Methods
io.netty5.util.concurrent

public Interface FutureListener<V>

Known Direct Implementers
io.netty5.util.concurrent.Futures.Mapper, io.netty5.util.concurrent.Futures.FlatMapper
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(FutureListener).
Future f = new DefaultPromise(..);
f.addListener(future -> { .. });

Method Summary

Modifier and TypeMethod and Description
public void
operationComplete(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(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