Class LocalEventLoopGroup
- All Implemented Interfaces:
EventLoopGroup, EventExecutorGroup, Iterable<EventExecutor>, Executor, ExecutorService, ScheduledExecutorService
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a new instance with the default number of threads.LocalEventLoopGroup(int nThreads) Deprecated.Create a new instanceLocalEventLoopGroup(int nThreads, ThreadFactory threadFactory) Deprecated.Create a new instanceLocalEventLoopGroup(ThreadFactory threadFactory) Deprecated.Create a new instance with the default number of threads and the givenThreadFactory. -
Method Summary
Methods inherited from class DefaultEventLoopGroup
newChildModifier and TypeMethodDescriptionprotected EventLoopCreate a new EventExecutor which will later then accessible via theMultithreadEventExecutorGroup.next()method.Methods inherited from class MultithreadEventLoopGroup
newDefaultThreadFactory, next, register, register, registerModifier and TypeMethodDescriptionprotected ThreadFactorynext()Returns one of theEventExecutors managed by thisEventExecutorGroup.register(ChannelPromise promise) register(Channel channel, ChannelPromise promise) Deprecated.Methods inherited from class MultithreadEventExecutorGroup
awaitTermination, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFutureModifier and TypeMethodDescriptionbooleanawaitTermination(long timeout, TimeUnit unit) final intReturn the number ofEventExecutorthis implementation uses.booleanbooleanReturnstrueif and only if allEventExecutors managed by thisEventExecutorGroupare being shut down gracefully or was shut down.booleaniterator()voidshutdown()Deprecated.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) Signals this executor that the caller wants the executor to be shut down.Future<?> Returns theFuturewhich is notified when allEventExecutors managed by thisEventExecutorGrouphave been terminated.Methods inherited from class AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitModifier and TypeMethodDescriptionvoidinvokeAll(Collection<? extends Callable<T>> tasks) invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <T> TinvokeAny(Collection<? extends Callable<T>> tasks) <T> TinvokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <V> ScheduledFuture<V> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) Future<?> Shortcut method forEventExecutorGroup.shutdownGracefully(long, long, TimeUnit)with sensible default values.Future<?> <T> Future<T> <T> Future<T> Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
LocalEventLoopGroup
public LocalEventLoopGroup()Deprecated.Create a new instance with the default number of threads. -
LocalEventLoopGroup
public LocalEventLoopGroup(int nThreads) Deprecated.Create a new instance- Parameters:
nThreads- the number of threads to use
-
LocalEventLoopGroup
Deprecated.Create a new instance with the default number of threads and the givenThreadFactory.- Parameters:
threadFactory- theThreadFactoryornullto use the default
-
LocalEventLoopGroup
Deprecated.Create a new instance- Parameters:
nThreads- the number of threads to usethreadFactory- theThreadFactoryornullto use the default
-
DefaultEventLoopGroupinstead.