Top Description Methods
io.netty5.util.concurrent

public Interface RunnableFuture<V>

extends Runnable, Future<V>
Known Direct Subinterfaces
io.netty5.util.concurrent.RunnableScheduledFuture
Known Direct Implementers
io.netty5.util.concurrent.RunnableFutureAdapter

A combination of java.util.concurrent.RunnableFuture and Future.

Method Summary

Modifier and TypeMethod and Description
public RunnableFuture<V>
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.netty5.util.concurrent.Future.addListener.

Adds the specified listener to this future.
public <C> RunnableFuture<V>
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.netty5.util.concurrent.Future.addListener.

Adds the specified listener to this future.
Inherited from io.netty5.util.concurrent.Future:
asStagecascadeToflatMapmap
Inherited from java.lang.Runnable:
run

Method Detail

addListenerback to summary
public RunnableFuture<V> addListener(FutureListener<? super V> listener)

Redeclares io.netty5.util.concurrent.Future.addListener.

Doc from io.netty5.util.concurrent.Future.addListener.

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.

Parameters
listener:FutureListener<? super V>

The listener to be called when this future completes. The listener will be passed this future as an argument.

Returns:RunnableFuture<V>

this future object.

Annotations
@Override
addListenerback to summary
public <C> RunnableFuture<V> addListener(C context, FutureContextListener<? super C, ? super V> listener)

Redeclares io.netty5.util.concurrent.Future.addListener.

Doc from io.netty5.util.concurrent.Future.addListener.

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.

Parameters
context:C

The context object that will be passed to the listener when this future completes.

listener: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.

Returns:RunnableFuture<V>

this future object.

Annotations
@Override