GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.channel
  • ThreadPerChannelEventLoopGroup

This view

  • Original page
  • New address

GeezerVison is showing netty.io — ThreadPerChannelEventLoopGroup (Netty API Reference (4.1.141.Final))

Class ThreadPerChannelEventLoopGroup

java.lang.Object
io.netty.util.concurrent.AbstractEventExecutorGroup
io.netty.channel.ThreadPerChannelEventLoopGroup
All Implemented Interfaces:
EventLoopGroup, EventExecutorGroup, Iterable<EventExecutor>, Executor, ExecutorService, ScheduledExecutorService
Direct Known Subclasses:
OioEventLoopGroup

@Deprecated public class ThreadPerChannelEventLoopGroup extends AbstractEventExecutorGroup implements EventLoopGroup
Deprecated.
this will be remove in the next-major release.
An EventLoopGroup that creates one EventLoop per Channel.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    awaitTermination(long timeout, TimeUnit unit)
    Deprecated.
     
    boolean
    isShutdown()
    Deprecated.
     
    boolean
    isShuttingDown()
    Deprecated.
    Returns true if and only if all EventExecutors managed by this EventExecutorGroup are being shut down gracefully or was shut down.
    boolean
    isTerminated()
    Deprecated.
     
    Iterator<EventExecutor>
    iterator()
    Deprecated.
     
    protected EventLoop
    newChild(Object... args)
    Deprecated.
    Creates a new EventLoop.
    EventLoop
    next()
    Deprecated.
    Returns one of the EventExecutors managed by this EventExecutorGroup.
    ChannelFuture
    register(Channel channel)
    Deprecated.
    Register a Channel with this EventLoop.
    ChannelFuture
    register(ChannelPromise promise)
    Deprecated.
    Register a Channel with this EventLoop using a ChannelFuture.
    ChannelFuture
    register(Channel channel, ChannelPromise promise)
    Deprecated.
    void
    shutdown()
    Deprecated.
    Future<?>
    shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit)
    Deprecated.
    Signals this executor that the caller wants the executor to be shut down.
    Future<?>
    terminationFuture()
    Deprecated.
    Returns the Future which is notified when all EventExecutors managed by this EventExecutorGroup have been terminated.

    Methods inherited from class AbstractEventExecutorGroup

    execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
    Modifier and Type
    Method
    Description
    void
    execute(Runnable command)
     
    <T> List<Future<T>>
    invokeAll(Collection<? extends Callable<T>> tasks)
     
    <T> List<Future<T>>
    invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
     
    <T> T
    invokeAny(Collection<? extends Callable<T>> tasks)
     
    <T> T
    invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
     
    ScheduledFuture<?>
    schedule(Runnable command, long delay, TimeUnit unit)
     
    <V> ScheduledFuture<V>
    schedule(Callable<V> callable, long delay, TimeUnit unit)
     
    ScheduledFuture<?>
    scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
     
    ScheduledFuture<?>
    scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
     
    Future<?>
    shutdownGracefully()
    Shortcut method for EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) with sensible default values.
    List<Runnable>
    shutdownNow()
    Deprecated.
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or AbstractEventExecutorGroup.shutdownGracefully() instead.
    Future<?>
    submit(Runnable task)
     
    <T> Future<T>
    submit(Runnable task, T result)
     
    <T> Future<T>
    submit(Callable<T> task)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Iterable

    forEach, spliterator
  • Constructor Details

    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup()
      Deprecated.
      Create a new ThreadPerChannelEventLoopGroup with no limit in place.
    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup(int maxChannels)
      Deprecated.
      Create a new ThreadPerChannelEventLoopGroup.
      Parameters:
      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 limit
    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup(int maxChannels, ThreadFactory threadFactory, Object... args)
      Deprecated.
      Create a new ThreadPerChannelEventLoopGroup.
      Parameters:
      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 limit
      threadFactory - the ThreadFactory used to create new Thread instances that handle the registered Channels
      args - arguments which will passed to each newChild(Object...) call.
    • ThreadPerChannelEventLoopGroup

      protected ThreadPerChannelEventLoopGroup(int maxChannels, Executor executor, Object... args)
      Deprecated.
      Create a new ThreadPerChannelEventLoopGroup.
      Parameters:
      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 limit
      executor - the Executor used to create new Thread instances that handle the registered Channels
      args - arguments which will passed to each newChild(Object...) call.
  • Method Details

    • newChild

      protected EventLoop newChild(Object... args) throws Exception
      Deprecated.
      Creates a new EventLoop. The default implementation creates a new ThreadPerChannelEventLoop.
      Throws:
      Exception
    • iterator

      public Iterator<EventExecutor> iterator()
      Deprecated.
      Specified by:
      iterator in interface EventExecutorGroup
      Specified by:
      iterator in interface Iterable<EventExecutor>
    • next

      public EventLoop next()
      Deprecated.
      Description copied from interface: EventExecutorGroup
      Returns one of the EventExecutors managed by this EventExecutorGroup.
      Specified by:
      next in interface EventExecutorGroup
      Specified by:
      next in interface EventLoopGroup
    • shutdownGracefully

      public Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit)
      Deprecated.
      Description copied from interface: EventExecutorGroup
      Signals this executor that the caller wants the executor to be shut down. Once this method is called, EventExecutorGroup.isShuttingDown() starts to return true, and the executor prepares to shut itself down. Unlike EventExecutorGroup.shutdown(), graceful shutdown ensures that no tasks are submitted for 'the quiet period' (usually a couple seconds) before it shuts itself down. If a task is submitted during the quiet period, it is guaranteed to be accepted and the quiet period will start over.
      Specified by:
      shutdownGracefully in interface EventExecutorGroup
      Parameters:
      quietPeriod - the quiet period as described in the documentation
      timeout - the maximum amount of time to wait until the executor is EventExecutorGroup.shutdown() regardless if a task was submitted during the quiet period
      unit - the unit of quietPeriod and timeout
      Returns:
      the EventExecutorGroup.terminationFuture()
    • terminationFuture

      public Future<?> terminationFuture()
      Deprecated.
      Description copied from interface: EventExecutorGroup
      Returns the Future which is notified when all EventExecutors managed by this EventExecutorGroup have been terminated.
      Specified by:
      terminationFuture in interface EventExecutorGroup
    • shutdown

      @Deprecated public void shutdown()
      Deprecated.
      Specified by:
      shutdown in interface EventExecutorGroup
      Specified by:
      shutdown in interface ExecutorService
      Specified by:
      shutdown in class AbstractEventExecutorGroup
    • isShuttingDown

      public boolean isShuttingDown()
      Deprecated.
      Description copied from interface: EventExecutorGroup
      Returns true if and only if all EventExecutors managed by this EventExecutorGroup are being shut down gracefully or was shut down.
      Specified by:
      isShuttingDown in interface EventExecutorGroup
    • isShutdown

      public boolean isShutdown()
      Deprecated.
      Specified by:
      isShutdown in interface ExecutorService
    • isTerminated

      public boolean isTerminated()
      Deprecated.
      Specified by:
      isTerminated in interface ExecutorService
    • awaitTermination

      public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
      Deprecated.
      Specified by:
      awaitTermination in interface ExecutorService
      Throws:
      InterruptedException
    • register

      public ChannelFuture register(Channel channel)
      Deprecated.
      Description copied from interface: EventLoopGroup
      Register a Channel with this EventLoop. The returned ChannelFuture will get notified once the registration was complete.
      Specified by:
      register in interface EventLoopGroup
    • register

      public ChannelFuture register(ChannelPromise promise)
      Deprecated.
      Description copied from interface: EventLoopGroup
      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.
      Specified by:
      register in interface EventLoopGroup
    • register

      @Deprecated public ChannelFuture register(Channel channel, ChannelPromise promise)
      Deprecated.
      Description copied from interface: EventLoopGroup
      Register a Channel with this EventLoop. The passed ChannelFuture will get notified once the registration was complete and also will get returned.
      Specified by:
      register in interface EventLoopGroup
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.