Package io.netty.channel
Class ThreadPerChannelEventLoopGroup
- java.lang.Object
-
- io.netty.util.concurrent.AbstractEventExecutorGroup
-
- io.netty.channel.ThreadPerChannelEventLoopGroup
-
- All Implemented Interfaces:
EventLoopGroup,io.netty.util.concurrent.EventExecutorGroup,Iterable<io.netty.util.concurrent.EventExecutor>,Executor,ExecutorService,ScheduledExecutorService
- Direct Known Subclasses:
OioEventLoopGroup
@Deprecated public class ThreadPerChannelEventLoopGroup extends io.netty.util.concurrent.AbstractEventExecutorGroup implements EventLoopGroup
Deprecated.this will be remove in the next-major release.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedThreadPerChannelEventLoopGroup()Deprecated.Create a newThreadPerChannelEventLoopGroupwith no limit in place.protectedThreadPerChannelEventLoopGroup(int maxChannels)Deprecated.Create a newThreadPerChannelEventLoopGroup.protectedThreadPerChannelEventLoopGroup(int maxChannels, Executor executor, Object... args)Deprecated.Create a newThreadPerChannelEventLoopGroup.protectedThreadPerChannelEventLoopGroup(int maxChannels, ThreadFactory threadFactory, Object... args)Deprecated.Create a newThreadPerChannelEventLoopGroup.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanawaitTermination(long timeout, TimeUnit unit)Deprecated.booleanisShutdown()Deprecated.booleanisShuttingDown()Deprecated.booleanisTerminated()Deprecated.Iterator<io.netty.util.concurrent.EventExecutor>iterator()Deprecated.protected EventLoopnewChild(Object... args)Deprecated.Creates a newEventLoop.EventLoopnext()Deprecated.Return the nextEventLoopto useChannelFutureregister(Channel channel)Deprecated.ChannelFutureregister(ChannelPromise promise)Deprecated.ChannelFutureregister(Channel channel, ChannelPromise promise)Deprecated.voidshutdown()Deprecated.io.netty.util.concurrent.Future<?>shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit)Deprecated.io.netty.util.concurrent.Future<?>terminationFuture()Deprecated.-
Methods inherited from class io.netty.util.concurrent.AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.util.concurrent.EventExecutorGroup
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit, ticker
-
Methods inherited from interface java.util.concurrent.ExecutorService
invokeAll, invokeAll, invokeAny, invokeAny
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ThreadPerChannelEventLoopGroup
protected ThreadPerChannelEventLoopGroup()
Deprecated.Create a newThreadPerChannelEventLoopGroupwith no limit in place.
-
ThreadPerChannelEventLoopGroup
protected ThreadPerChannelEventLoopGroup(int maxChannels)
Deprecated.Create a newThreadPerChannelEventLoopGroup.- Parameters:
maxChannels- the maximum number of channels to handle with this instance. Once you try to register a newChanneland the maximum is exceed it will throw anChannelException. on theregister(Channel)andregister(ChannelPromise)method. Use0to use no limit
-
ThreadPerChannelEventLoopGroup
protected ThreadPerChannelEventLoopGroup(int maxChannels, ThreadFactory threadFactory, Object... args)Deprecated.Create a newThreadPerChannelEventLoopGroup.- Parameters:
maxChannels- the maximum number of channels to handle with this instance. Once you try to register a newChanneland the maximum is exceed it will throw anChannelExceptionon theregister(Channel)andregister(ChannelPromise)method. Use0to use no limitthreadFactory- theThreadFactoryused to create newThreadinstances that handle the registeredChannelsargs- arguments which will passed to eachnewChild(Object...)call.
-
ThreadPerChannelEventLoopGroup
protected ThreadPerChannelEventLoopGroup(int maxChannels, Executor executor, Object... args)Deprecated.Create a newThreadPerChannelEventLoopGroup.- Parameters:
maxChannels- the maximum number of channels to handle with this instance. Once you try to register a newChanneland the maximum is exceed it will throw anChannelExceptionon theregister(Channel)andregister(ChannelPromise)method. Use0to use no limitexecutor- theExecutorused to create newThreadinstances that handle the registeredChannelsargs- arguments which will passed to eachnewChild(Object...)call.
-
-
Method Detail
-
newChild
protected EventLoop newChild(Object... args) throws Exception
Deprecated.Creates a newEventLoop. The default implementation creates a newThreadPerChannelEventLoop.- Throws:
Exception
-
iterator
public Iterator<io.netty.util.concurrent.EventExecutor> iterator()
Deprecated.
-
next
public EventLoop next()
Deprecated.Description copied from interface:EventLoopGroupReturn the nextEventLoopto use- Specified by:
nextin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup
-
shutdownGracefully
public io.netty.util.concurrent.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit)Deprecated.- Specified by:
shutdownGracefullyin interfaceio.netty.util.concurrent.EventExecutorGroup
-
terminationFuture
public io.netty.util.concurrent.Future<?> terminationFuture()
Deprecated.- Specified by:
terminationFuturein interfaceio.netty.util.concurrent.EventExecutorGroup
-
shutdown
@Deprecated public void shutdown()
Deprecated.- Specified by:
shutdownin interfaceio.netty.util.concurrent.EventExecutorGroup- Specified by:
shutdownin interfaceExecutorService- Specified by:
shutdownin classio.netty.util.concurrent.AbstractEventExecutorGroup
-
isShuttingDown
public boolean isShuttingDown()
Deprecated.- Specified by:
isShuttingDownin interfaceio.netty.util.concurrent.EventExecutorGroup
-
isShutdown
public boolean isShutdown()
Deprecated.- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()
Deprecated.- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedExceptionDeprecated.- Specified by:
awaitTerminationin interfaceExecutorService- Throws:
InterruptedException
-
register
public ChannelFuture register(Channel channel)
Deprecated.Description copied from interface:EventLoopGroupRegister aChannelwith thisEventLoop. The returnedChannelFuturewill get notified once the registration was complete.- Specified by:
registerin interfaceEventLoopGroup
-
register
public ChannelFuture register(ChannelPromise promise)
Deprecated.Description copied from interface:EventLoopGroupRegister aChannelwith thisEventLoopusing aChannelFuture. The passedChannelFuturewill get notified once the registration was complete and also will get returned.- Specified by:
registerin interfaceEventLoopGroup
-
register
@Deprecated public ChannelFuture register(Channel channel, ChannelPromise promise)
Deprecated.Description copied from interface:EventLoopGroupRegister aChannelwith thisEventLoop. The passedChannelFuturewill get notified once the registration was complete and also will get returned.- Specified by:
registerin interfaceEventLoopGroup
-
-