Top Description Methods
io.netty5.channel

public Interface EventLoop

extends OrderedEventExecutor, EventLoopGroup
Known Direct Implementers
io.netty5.channel.embedded.EmbeddedEventLoop, io.netty5.channel.SingleThreadEventLoop
Imports
io.netty5.util.concurrent.Future, .OrderedEventExecutor

Will handle all the I/O operations for a IoHandle once registered.

One EventLoop instance will usually handle more than one IoHandle but this may depend on implementation details and internals.

Method Summary

Modifier and TypeMethod and Description
public Future<Void>

Returns:

the Future that is notified once the operations completes.
deregisterForIo
(IoHandle
the IoHandle to deregister.
handle
)

Deregister the Channel from the EventLoop for I/O processing.

public boolean
isCompatible(Class<? extends IoHandle>
the type of the IoHandle.
handleType
)

Redeclares as abstract: io.netty5.channel.EventLoopGroup.isCompatible.

Returns true if the given type is compatible with this EventLoopGroup and so can be registered to the contained EventLoops, false otherwise.
public default EventLoop
public Future<Void>

Returns:

the Future that is notified once the operations completes.
registerForIo
(IoHandle
the IoHandle to register.
handle
)

Register the IoHandle to the EventLoop for I/O processing.

Method Detail

deregisterForIoback to summary
public Future<Void> deregisterForIo(IoHandle handle)

Deregister the Channel from the EventLoop for I/O processing.

Parameters
handle:IoHandle

the IoHandle to deregister.

Returns:Future<Void>

the Future that is notified once the operations completes.

isCompatibleback to summary
public boolean isCompatible(Class<? extends IoHandle> handleType)

Redeclares as abstract: io.netty5.channel.EventLoopGroup.isCompatible.

Doc from io.netty5.channel.EventLoopGroup.isCompatible.

Returns true if the given type is compatible with this EventLoopGroup and so can be registered to the contained EventLoops, false otherwise.

Parameters
handleType:Class<? extends IoHandle>

the type of the IoHandle.

Returns:boolean

if compatible of not.

Annotations
@Override
nextback to summary
public default EventLoop next()

Overrides default io.netty5.util.concurrent.EventExecutor.next.

Implements io.netty5.channel.EventLoopGroup.next.

Doc from io.netty5.channel.EventLoopGroup.next.

Return the next EventLoop to use

Annotations
@Override
registerForIoback to summary
public Future<Void> registerForIo(IoHandle handle)

Register the IoHandle to the EventLoop for I/O processing.

Parameters
handle:IoHandle

the IoHandle to register.

Returns:Future<Void>

the Future that is notified once the operations completes.