FutureListeners

public final class FutureListeners

Utilities for working with netty's future listeners.

See also

io.netty.util.concurrent.FutureListener
io.netty.channel.ChannelFutureListener

Functions

free
Link copied to clipboard
static ChannelFutureListener free(PacketByteBuf buf)
Returns a future listener that releases a packet byte buf when the buffer has been sent to a remote connection.
isLocalChannel
Link copied to clipboard
static boolean isLocalChannel(Channel channel)
Returns whether a netty channel performs local transportation, or if the message objects in the channel are directly passed than written to and read from a byte buf.
union
Link copied to clipboard
static GenericFutureListener<? extends Future<? extends Object>> union<A extends Future<? extends Object>, B extends Future<? extends Object>>(GenericFutureListener<A> first, GenericFutureListener<B> second)
Combines two future listeners.

Sources

jvm source
Link copied to clipboard