Package io.netty.channel
Interface IoEventLoop
- All Superinterfaces:
EventExecutor,EventExecutorGroup,EventLoop,EventLoopGroup,Executor,ExecutorService,IoEventLoopGroup,Iterable<EventExecutor>,OrderedEventExecutor,ScheduledExecutorService,ThreadAwareExecutor
- All Known Implementing Classes:
EpollEventLoop,ManualIoEventLoop,NioEventLoop,SingleThreadIoEventLoop
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisCompatible(Class<? extends IoHandle> handleType) Returnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.booleandefault IoEventLoopnext()Returns one of theEventExecutors managed by thisEventExecutorGroup.Methods inherited from interface io.netty.util.concurrent.EventExecutor
inEventLoop, inEventLoop, isExecutorThread, isSuspended, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, trySuspendMethods inherited from interface io.netty.util.concurrent.EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture, tickerMethods inherited from interface io.netty.channel.EventLoopGroup
registerMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface io.netty.channel.IoEventLoopGroup
register, registerMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
next
Description copied from interface:EventExecutorGroupReturns one of theEventExecutors managed by thisEventExecutorGroup.- Specified by:
nextin interfaceEventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup- Specified by:
nextin interfaceIoEventLoopGroup
-
register
- Specified by:
registerin interfaceIoEventLoopGroup- Parameters:
handle- theIoHandleto register.- Returns:
- the
Futurethat is notified once the operations completes.
-
isCompatible
Description copied from interface:IoEventLoopGroupReturnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.- Specified by:
isCompatiblein interfaceIoEventLoopGroup- Parameters:
handleType- the type of theIoHandle.- Returns:
- if compatible of not.
-
isIoType
Description copied from interface:IoEventLoopGroup- Specified by:
isIoTypein interfaceIoEventLoopGroup- Parameters:
handlerType- the type of theIoHandler.- Returns:
- if used or not.
-