Top Description Fields Constructors Methods
io.netty.channel

public Class ThreadPerChannelEventLoop

extends SingleThreadEventLoop
Class Inheritance
Annotations
@Deprecated

Deprecated

this will be remove in the next-major release.

SingleThreadEventLoop which is used to handle OIO Channel's. So in general there will be one ThreadPerChannelEventLoop per Channel.

Field Summary

Modifier and TypeField and Description
private Channel
private final ThreadPerChannelEventLoopGroup
Inherited from io.netty.channel.SingleThreadEventLoop:
DEFAULT_MAX_PENDING_TASKS

Constructor Summary

AccessConstructor and Description
public
ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent)

Deprecated as a consequence of ThreadPerChannelEventLoopGroup being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected void
public ChannelFuture
public ChannelFuture
public int
registeredChannels()

Overrides io.netty.channel.SingleThreadEventLoop.registeredChannels.

Returns the number of Channels registered with this EventLoop or -1 if operation is not supported.
protected void
run()

Implements abstract io.netty.util.concurrent.SingleThreadEventExecutor.run.

Run the tasks in the taskQueue
Inherited from io.netty.channel.SingleThreadEventLoop:
afterRunningAllTasksexecuteAfterEventLoopIterationhasTasksnextparentpendingTasksregisterregisteredChannelsIteratorremoveAfterEventLoopIterationTask

Field Detail

chback to summary
private Channel ch
parentback to summary
private final ThreadPerChannelEventLoopGroup parent

Hides io.netty.util.concurrent.AbstractEventExecutor.parent.

Deprecated

as a consequence of ThreadPerChannelEventLoopGroup being deprecated. See corresponding docs for further information.

Constructor Detail

ThreadPerChannelEventLoopback to summary
public ThreadPerChannelEventLoop(ThreadPerChannelEventLoopGroup parent)

Deprecated

as a consequence of ThreadPerChannelEventLoopGroup being deprecated. See corresponding docs for further information.

Method Detail

deregisterback to summary
protected void deregister()
registerback to summary
public ChannelFuture register(ChannelPromise promise)

Overrides io.netty.channel.SingleThreadEventLoop.register.

Implements io.netty.channel.EventLoopGroup.register.

Doc from io.netty.channel.EventLoopGroup.register.

Register a Channel with this EventLoop using a ChannelFuture. The passed ChannelFuture will get notified once the registration was complete and also will get returned.

Annotations
@Override
registerback to summary
public ChannelFuture register(Channel channel, ChannelPromise promise)

Overrides io.netty.channel.SingleThreadEventLoop.register.

Implements io.netty.channel.EventLoopGroup.register.

Doc from io.netty.channel.EventLoopGroup.register.

Deprecated

Register a Channel with this EventLoop. The passed ChannelFuture will get notified once the registration was complete and also will get returned.

Annotations
@Deprecated
@Override
registeredChannelsback to summary
public int registeredChannels()

Overrides io.netty.channel.SingleThreadEventLoop.registeredChannels.

Doc from io.netty.channel.SingleThreadEventLoop.registeredChannels.

Returns the number of Channels registered with this EventLoop or -1 if operation is not supported. The returned value is not guaranteed to be exact accurate and should be viewed as a best effort.

Annotations
@Override
runback to summary
protected void run()

Implements abstract io.netty.util.concurrent.SingleThreadEventExecutor.run.

Doc from io.netty.util.concurrent.SingleThreadEventExecutor.run.

Run the tasks in the taskQueue

Annotations
@Override