@Deprecated public class ThreadPerChannelEventLoopGroup extends io.netty.util.concurrent.AbstractEventExecutorGroup implements EventLoopGroup
Modifier | Constructor and Description |
---|---|
protected |
ThreadPerChannelEventLoopGroup()
Deprecated.
Create a new
ThreadPerChannelEventLoopGroup with no limit in place. |
protected |
ThreadPerChannelEventLoopGroup(int maxChannels)
Deprecated.
Create a new
ThreadPerChannelEventLoopGroup . |
protected |
ThreadPerChannelEventLoopGroup(int maxChannels,
Executor executor,
Object... args)
Deprecated.
Create a new
ThreadPerChannelEventLoopGroup . |
protected |
ThreadPerChannelEventLoopGroup(int maxChannels,
ThreadFactory threadFactory,
Object... args)
Deprecated.
Create a new
ThreadPerChannelEventLoopGroup . |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
Deprecated.
|
boolean |
isShutdown()
Deprecated.
|
boolean |
isShuttingDown()
Deprecated.
|
boolean |
isTerminated()
Deprecated.
|
Iterator<io.netty.util.concurrent.EventExecutor> |
iterator()
Deprecated.
|
protected EventLoop |
newChild(Object... args)
Deprecated.
Creates a new
EventLoop . |
EventLoop |
next()
Deprecated.
Return the next
EventLoop to use |
ChannelFuture |
register(Channel channel)
Deprecated.
|
ChannelFuture |
register(Channel channel,
ChannelPromise promise)
Deprecated.
|
ChannelFuture |
register(ChannelPromise promise)
Deprecated.
|
void |
shutdown()
Deprecated.
|
io.netty.util.concurrent.Future<?> |
shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit)
Deprecated.
|
io.netty.util.concurrent.Future<?> |
terminationFuture()
Deprecated.
|
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
invokeAll, invokeAll, invokeAny, invokeAny
forEach, spliterator
protected ThreadPerChannelEventLoopGroup()
ThreadPerChannelEventLoopGroup
with no limit in place.protected ThreadPerChannelEventLoopGroup(int maxChannels)
ThreadPerChannelEventLoopGroup
.maxChannels
- the maximum number of channels to handle with this instance. Once you try to register
a new Channel
and the maximum is exceed it will throw an
ChannelException
. on the register(Channel)
and
register(ChannelPromise)
method.
Use 0
to use no limitprotected ThreadPerChannelEventLoopGroup(int maxChannels, ThreadFactory threadFactory, Object... args)
ThreadPerChannelEventLoopGroup
.maxChannels
- the maximum number of channels to handle with this instance. Once you try to register
a new Channel
and the maximum is exceed it will throw an
ChannelException
on the register(Channel)
and
register(ChannelPromise)
method.
Use 0
to use no limitthreadFactory
- the ThreadFactory
used to create new Thread
instances that handle the
registered Channel
sargs
- arguments which will passed to each newChild(Object...)
call.protected ThreadPerChannelEventLoopGroup(int maxChannels, Executor executor, Object... args)
ThreadPerChannelEventLoopGroup
.maxChannels
- the maximum number of channels to handle with this instance. Once you try to register
a new Channel
and the maximum is exceed it will throw an
ChannelException
on the register(Channel)
and
register(ChannelPromise)
method.
Use 0
to use no limitexecutor
- the Executor
used to create new Thread
instances that handle the
registered Channel
sargs
- arguments which will passed to each newChild(Object...)
call.protected EventLoop newChild(Object... args) throws Exception
EventLoop
. The default implementation creates a new ThreadPerChannelEventLoop
.Exception
public Iterator<io.netty.util.concurrent.EventExecutor> iterator()
public EventLoop next()
EventLoopGroup
EventLoop
to usenext
in interface EventLoopGroup
next
in interface io.netty.util.concurrent.EventExecutorGroup
public io.netty.util.concurrent.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit)
shutdownGracefully
in interface io.netty.util.concurrent.EventExecutorGroup
public io.netty.util.concurrent.Future<?> terminationFuture()
terminationFuture
in interface io.netty.util.concurrent.EventExecutorGroup
@Deprecated public void shutdown()
shutdown
in interface io.netty.util.concurrent.EventExecutorGroup
shutdown
in interface ExecutorService
shutdown
in class io.netty.util.concurrent.AbstractEventExecutorGroup
public boolean isShuttingDown()
isShuttingDown
in interface io.netty.util.concurrent.EventExecutorGroup
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isTerminated()
isTerminated
in interface ExecutorService
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
public ChannelFuture register(Channel channel)
EventLoopGroup
Channel
with this EventLoop
. The returned ChannelFuture
will get notified once the registration was complete.register
in interface EventLoopGroup
public ChannelFuture register(ChannelPromise promise)
EventLoopGroup
Channel
with this EventLoop
using a ChannelFuture
. The passed
ChannelFuture
will get notified once the registration was complete and also will get returned.register
in interface EventLoopGroup
@Deprecated public ChannelFuture register(Channel channel, ChannelPromise promise)
EventLoopGroup
Channel
with this EventLoop
. The passed ChannelFuture
will get notified once the registration was complete and also will get returned.register
in interface EventLoopGroup
Copyright © 2008–2019 The Netty Project. All rights reserved.